File tree Expand file tree Collapse file tree 1 file changed +29
-7
lines changed
Expand file tree Collapse file tree 1 file changed +29
-7
lines changed Original file line number Diff line number Diff line change @@ -181,13 +181,6 @@ jobs:
181181 zip -r "../requirements-${{ needs.tag-release.outputs.VERSION }}.zip" .
182182 cd ..
183183
184- - name : Commit documentation
185- run : |
186- VERSION=${{ needs.tag-release.outputs.VERSION }}
187- git add docs/api/${VERSION}
188- git commit -m "Publishing documentation for version ${VERSION}"
189- git push
190-
191184 - name : Upload bundle
192185 id : upload
193186 env :
@@ -252,6 +245,35 @@ jobs:
252245 exit 1
253246 fi
254247
248+ - name : Commit documentation
249+ run : |
250+ VERSION=${{ needs.tag-release.outputs.VERSION }}
251+ git add docs/api/${VERSION}
252+ git commit -m "Publishing documentation for version ${VERSION}"
253+ git push
254+
255+ document :
256+ name : Document
257+ needs : deploy
258+ environment :
259+ name : github-pages
260+ url : ${{ steps.deployment.outputs.page_url }}
261+ runs-on : ubuntu-latest
262+ steps :
263+ - name : Checkout
264+ uses : actions/checkout@v4
265+ with :
266+ ref : ${{ github.ref }}
267+ - name : Setup Pages
268+ uses : actions/configure-pages@v5
269+ - name : Upload artifact
270+ uses : actions/upload-pages-artifact@v3
271+ with :
272+ path : " docs/api"
273+ - name : Deploy to GitHub Pages
274+ id : deployment
275+ uses : actions/deploy-pages@v4
276+
255277 on-failure :
256278 name : On failure
257279 needs : [ tag-release, build, deploy ]
You can’t perform that action at this time.
0 commit comments