Skip to content

Commit efe0c5e

Browse files
ci: fix docs deploy
1 parent 261645f commit efe0c5e

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/build.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,29 @@ jobs:
127127
run: export NODE_OPTIONS=--openssl-legacy-provider;(cd docs && npm ci && npm run docs:build)
128128
- name: Add .nojekyll
129129
run: (cd public && touch .nojekyll)
130+
- name: move to subdir
131+
run: mkdir upload_docs && mv public upload_docs/
130132
- name: Upload docs
131133
uses: actions/upload-artifact@v4
132134
with:
133135
name: ipyaggrid-docs-${{ github.run_number }}
134136
path: |
135-
./public
137+
./upload_docs
138+
139+
temp-deploy-docs:
140+
needs: [ build-docs ]
141+
runs-on: ubuntu-20.04
142+
steps:
143+
- uses: actions/download-artifact@v4
144+
with:
145+
name: ipyaggrid-docs-${{ github.run_number }}
146+
- name: show files
147+
run: find .
148+
- name: Deploy docs
149+
uses: peaceiris/actions-gh-pages@v3
150+
with:
151+
github_token: ${{ secrets.GH_TOKEN }}
152+
publish_dir: ./public
136153

137154
release:
138155
if: startsWith(github.event.ref, 'refs/tags/v')

0 commit comments

Comments
 (0)