Clean up code by using C++ ranges for some objects (#126) #57
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Github Pages | |
on: | |
push: | |
branches: [main] | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
# Allow one concurrent deployment | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
jobs: | |
run-coverage: | |
uses: ./.github/workflows/test_mpc.yml | |
build-docs: | |
uses: ./.github/workflows/build_docs.yml | |
deploy: | |
needs: [run-coverage, build-docs] | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download docs artifact | |
# docs artifact is uploaded by build-docs job | |
uses: actions/download-artifact@v4 | |
with: | |
name: documentation | |
path: "./public" | |
- name: Download docs artifact | |
# docs artifact is uploaded by build-docs job | |
uses: actions/download-artifact@v4 | |
with: | |
name: code-coverage-report | |
path: "./public/code-coverage-report" | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: "./public" | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Pages | |
uses: actions/configure-pages@v5 | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |