build(deps): bump actions/upload-pages-artifact from 4.0.0 to 5.0.0 #1223
This file contains hidden or 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: Build and host documentation on GH pages | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - "**" | |
| jobs: | |
| build: | |
| name: Build documentation | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - uses: taiki-e/install-action@protoc | |
| - name: Build Documentation | |
| run: cargo doc --no-deps --all --all-features | |
| - name: Add index file | |
| run: | | |
| mkdir host-docs | |
| echo "<meta http-equiv=\"refresh\" content=\"0; url=aggkit-prover\">" > target/doc/index.html | |
| cp -r target/doc/* ./host-docs | |
| - name: Upload documentation | |
| uses: actions/upload-pages-artifact@v5.0.0 | |
| with: | |
| path: "host-docs/" | |
| deploy: | |
| name: Deploy documentation | |
| needs: build | |
| if: github.ref == 'refs/heads/main' | |
| permissions: | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |