Skip to content

Commit 7d58cad

Browse files
committed
Added documentation and updated README
1 parent 062a140 commit 7d58cad

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.github/workflows/deploy_pages.yml

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
- name: Build and publish
2929
env:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
# PAT to enable the that happens in the task 'publish_https'
3132
GIT_PAT: ${{ secrets.MY_PAT }}
3233
run: |
3334
pipenv run task publish_https

README.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
# Publishing the website:
22

3-
Three steps:
3+
Basically, three steps are needed:
44

5-
1. First, build the site locally:
5+
1. First, build the site locally
66
2. Prepare the static built (use [ghp-import](https://github.com/davisp/ghp-import))
77
3. Push to `master`
88

9+
These steps can be accomplished using:
10+
911
```bash
1012
pelican content -o output -s publishconf.py
1113
ghp-import output
1214
git push git@github.com:drorata/drorata.github.io.git gh-pages:master
1315
```
16+
17+
For the sake of simplicity and fun, [`Taskfile`](./Taskfile.yaml) is available.
18+
19+
To make things even better, a GitHub Action [`.github/workflows/deploy_pages.yml`](./.github/workflows/deploy_pages.yml) is also there.
20+
Every push to `source` branch will trigger the building of the site and publishing it.

Taskfile.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ tasks:
3030
- git push git@github.com:drorata/drorata.github.io.git gh-pages:master
3131

3232
publish_https:
33+
# Same as the publish task,
34+
# only using HTTPS so the token could be used when GitHub Actions kick in.
3335
deps: [build]
3436
cmds:
3537
- ghp-import output

0 commit comments

Comments
 (0)