Skip to content

Commit 4b0d1a0

Browse files
authored
Merge pull request #126 from SwayamInSync/ci-docs-deploy-job
CI: deploy the docs from a separate job after the build uploads them
2 parents a2c34af + a130a5c commit 4b0d1a0

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

‎.github/workflows/build_docs.yml‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,18 @@ jobs:
3838
uses: actions/upload-pages-artifact@v4
3939
with:
4040
path: "./docs/_build/html"
41+
42+
deploy:
43+
if: github.event_name != 'pull_request'
44+
needs: build
45+
runs-on: ubuntu-latest
46+
permissions:
47+
pages: write
48+
id-token: write
49+
environment:
50+
name: github-pages
51+
url: ${{ steps.deployment.outputs.page_url }}
52+
steps:
4153
- name: Deploy to GitHub Pages
42-
if: github.event_name != 'pull_request'
4354
id: deployment
4455
uses: actions/deploy-pages@v5

0 commit comments

Comments
 (0)