Skip to content

Commit ad00494

Browse files
committed
fix ci deploy perm & checkout
Signed-off-by: artivis <[email protected]>
1 parent 1abdc04 commit ad00494

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/docs.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,20 +104,27 @@ jobs:
104104
deploy:
105105
needs: [test]
106106
runs-on: ubuntu-latest
107+
permissions:
108+
contents: write
107109
# todo: deploy if new tag/release
108110
if: |
109111
github.repository == 'artivis/manif' &&
110112
github.event_name == 'push' &&
111113
github.ref == 'refs/heads/devel'
112114
steps:
115+
- name: Checkout
116+
uses: actions/checkout@v4
117+
with:
118+
ref: gh-pages
119+
113120
- name: Download artifacts
114121
uses: actions/download-artifact@v4
115122
with:
116123
name: doc
117-
path: doc
124+
path: docs_build
118125

119126
- name: Deploy
120127
uses: JamesIves/github-pages-deploy-action@v4
121128
with:
122129
branch: gh-pages
123-
folder: doc
130+
folder: docs_build

0 commit comments

Comments
 (0)