Skip to content

Commit 6d04d32

Browse files
committed
ci: Fix doc path
1 parent 52379ef commit 6d04d32

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/docs.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ concurrency:
2121
cancel-in-progress: true
2222

2323
env:
24-
DOC_PATH: ~/emacs-eask.github.io
24+
PATH_DOC: ${{ github.workspace }}/emacs-eask.github.io
2525

2626
jobs:
2727
publish-doc:
@@ -51,23 +51,23 @@ jobs:
5151
if: github.ref == 'refs/heads/master'
5252
with:
5353
repository: emacs-eask/emacs-eask.github.io
54-
path: ${{ env.DOC_PATH }}
54+
path: ${{ env.PATH_DOC }}
5555
token: ${{ secrets.PAT }}
5656

5757
- name: Clean up before the build
58-
working-directory: ${{ env.DOC_PATH }}
58+
working-directory: ${{ env.PATH_DOC }}
5959
run: git rm -r '*'
6060

6161
- name: Build doc artifacts with Hugo
6262
working-directory: docs
6363
run: |
64-
mkdir -p ${{ env.DOC_PATH }}
65-
hugo --destination ${{ env.DOC_PATH }} --minify
64+
mkdir -p ${{ env.PATH_DOC }}
65+
hugo --destination ${{ env.PATH_DOC }} --minify
6666
6767
# TODO: Generate better commit message
6868
- name: Publish doc artifacts
6969
if: github.ref == 'refs/heads/master'
70-
working-directory: ${{ env.DOC_PATH }}
70+
working-directory: ${{ env.PATH_DOC }}
7171
run: |
7272
git config user.name github-actions
7373
git config user.email [email protected]

0 commit comments

Comments
 (0)