Skip to content

Commit

Permalink
Change CI to publish on GitHub pages
Browse files Browse the repository at this point in the history
Change the GitHub actions to publish the generated HTML when a PR is
merged to the "main" branch.
  • Loading branch information
gmlueck committed Mar 29, 2024
1 parent 82d431b commit f1a8966
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,30 @@ jobs:
cmake -B build
make -j 2 -C build
ctest --test-dir build --label-exclude gpu
upload-pages:
runs-on: ubuntu-latest
needs: [checks, icpx]
#if: ${{ github.event_name == 'push' }}
steps:
- uses: actions/download-artifact@v4
with:
name: docs
- uses: actions/upload-pages-artifact@v3
with:
path: html

publish-pages:
runs-on: ubuntu-latest
needs: upload-pages
permissions:
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/deploy-pages@v4

0 comments on commit f1a8966

Please sign in to comment.