@@ -20,6 +20,9 @@ concurrency:
2020 group : ${{ github.workflow }}-${{ github.ref }}
2121 cancel-in-progress : true
2222
23+ env :
24+ PATH_DOC : ${{ github.workspace }}/emacs-eask.github.io
25+
2326jobs :
2427 publish-doc :
2528 runs-on : ubuntu-latest
2831 with :
2932 submodules : true
3033
31- - uses : actions/setup-node@v4
34+ - uses : actions/setup-node@v6
3235 with :
33- node-version : 20
36+ node-version : 22
3437
3538 - name : Setup Hugo
3639 uses : peaceiris/actions-hugo@v3
@@ -48,18 +51,24 @@ jobs:
4851 if : github.ref == 'refs/heads/master'
4952 with :
5053 repository : emacs-eask/emacs-eask.github.io
51- path : emacs-eask.github.io
54+ path : ${{ env.PATH_DOC }}
5255 token : ${{ secrets.PAT }}
5356
57+ - name : Clean up before the build
58+ working-directory : ${{ env.PATH_DOC }}
59+ continue-on-error : true
60+ run : git rm -r '*'
61+
5462 - name : Build doc artifacts with Hugo
55- run : |
56- mkdir -p ../emacs-eask.github.io
57- hugo --destination ../emacs-eask.github.io --minify
5863 working-directory : docs
64+ run : |
65+ mkdir -p ${{ env.PATH_DOC }}
66+ hugo --destination ${{ env.PATH_DOC }} --minify
5967
6068 # TODO: Generate better commit message
6169 - name : Publish doc artifacts
6270 if : github.ref == 'refs/heads/master'
71+ working-directory : ${{ env.PATH_DOC }}
6372 run : |
6473 git config user.name github-actions
6574 git config user.email [email protected] 7079 SourceCommit: https://github.com/emacs-eask/cli/commit/${{ github.sha }}
7180 _UBLT_COMMIT_MSG_
7281 git push
73- working-directory : emacs-eask.github.io
0 commit comments