Skip to content

Commit

Permalink
chore: Update GitHub Pages deployment in ci.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
fbriol committed Jun 29, 2024
1 parent c165262 commit 59912da
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ on:
pull_request:
branches: main

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
linux:
name: ${{ matrix.python-version }}-posix
Expand Down Expand Up @@ -46,11 +55,17 @@ jobs:
run: |
sphinx-build -b html docs/source docs/build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
- name: Setup Pages
uses: actions/configure-pages@v5

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build
path: docs/build

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

- name: Build C++ Library and Testing
shell: bash -l {0}
Expand Down

0 comments on commit 59912da

Please sign in to comment.