File tree 3 files changed +12
-2
lines changed
3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 28
28
- name : Build and publish
29
29
env :
30
30
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31
+ # PAT to enable the that happens in the task 'publish_https'
31
32
GIT_PAT : ${{ secrets.MY_PAT }}
32
33
run : |
33
34
pipenv run task publish_https
Original file line number Diff line number Diff line change 1
1
# Publishing the website:
2
2
3
- Three steps:
3
+ Basically, three steps are needed :
4
4
5
- 1 . First, build the site locally:
5
+ 1 . First, build the site locally
6
6
2 . Prepare the static built (use [ ghp-import] ( https://github.com/davisp/ghp-import ) )
7
7
3 . Push to ` master `
8
8
9
+ These steps can be accomplished using:
10
+
9
11
``` bash
10
12
pelican content -o output -s publishconf.py
11
13
ghp-import output
12
14
git push git@github.com:drorata/drorata.github.io.git gh-pages:master
13
15
```
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.
Original file line number Diff line number Diff line change 30
30
- git push git@github.com:drorata/drorata.github.io.git gh-pages:master
31
31
32
32
publish_https :
33
+ # Same as the publish task,
34
+ # only using HTTPS so the token could be used when GitHub Actions kick in.
33
35
deps : [build]
34
36
cmds :
35
37
- ghp-import output
You can’t perform that action at this time.
0 commit comments