Skip to content

Commit 7ff6cb0

Browse files
authored
Update docs.yml
1 parent 8442a16 commit 7ff6cb0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/docs.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ concurrency:
2020
group: ${{ github.workflow }}-${{ github.ref }}
2121
cancel-in-progress: true
2222

23+
env:
24+
PATH_DOC: ${{ github.workspace }}/cl-qob.github.io
25+
2326
jobs:
2427
publish-doc:
2528
runs-on: ubuntu-latest
@@ -47,16 +50,17 @@ jobs:
4750
uses: actions/checkout@v4
4851
with:
4952
repository: cl-qob/cl-qob.github.io
50-
path: cl-qob.github.io
53+
path: ${{ env.PATH_DOC }}
5154
token: ${{ secrets.PAT }}
5255

5356
- name: Build doc artifacts with Hugo
54-
run: hugo --destination ../cl-qob.github.io --minify
57+
run: hugo --destination ${{ env.PATH_DOC }} --minify
5558
working-directory: docs
5659

5760
# TODO: Generate better commit message
5861
- name: Publish doc artifacts
5962
if: github.ref == 'refs/heads/master'
63+
working-directory: ${{ env.PATH_DOC }}
6064
run: |
6165
git config user.name github-actions
6266
git config user.email github-actions@github.com
@@ -67,4 +71,3 @@ jobs:
6771
SourceCommit: https://github.com/cl-qob/cli/commit/${{ github.sha }}
6872
_UBLT_COMMIT_MSG_
6973
git push
70-
working-directory: cl-qob.github.io

0 commit comments

Comments
 (0)