build(deps): bump install-pinned/maturin from 1008b0b20e9cbc1b084334bd96f022734ce56e88 to 18a9a3b28f101f1737ff0b83d09800c06c0685f7 in the dependencies group #1201
Workflow file for this run
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: docs | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
# security: restrict permissions for CI jobs. | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
# Build the documentation and upload the static HTML files as an artifact. | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# TODO: This should ideally just reuse the main CI artifacts. | |
- uses: mhils/workflows/checkout@v17 | |
- uses: ./.github/actions/setup | |
- uses: install-pinned/maturin-with-zig@caba41a16e619c003b5adb81920d21ee51dfad00 | |
- uses: install-pinned/mypy@75779f141592e4909d64e13f8a1861f06aa9cd8d | |
- uses: install-pinned/pdoc@5a894a20c6b4e9db4d3fe07efd9680b0f753b0d1 | |
- run: maturin build --features docs,pyo3/extension-module | |
working-directory: ./mitmproxy-rs | |
- run: pip install --no-index --no-dependencies --find-links target/wheels/ mitmproxy_rs | |
- run: stubtest --allowlist mitmproxy-rs/stubtest-allowlist.txt --mypy-config-file mitmproxy-rs/pyproject.toml mitmproxy_rs | |
- run: pdoc -o docs/ mitmproxy_rs | |
- uses: actions/upload-pages-artifact@v3 | |
with: | |
path: docs/ | |
# Deploy the artifact to GitHub pages. | |
# This is a separate job so that only actions/deploy-pages has the necessary permissions. | |
deploy: | |
if: github.ref == 'refs/heads/main' | |
needs: build | |
runs-on: ubuntu-latest | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- id: deployment | |
uses: actions/deploy-pages@v4 |