Bump version to 1.7.0 #27
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
| # Generates Rustdoc API documentation and publishes it to the docs-src branch | |
| # (served via GitHub Pages). Runs on pushes to main that touch the source. | |
| name: π Docs | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - src/** | |
| - Cargo.toml | |
| permissions: | |
| contents: write | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| name: π Build & publish docs | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: ποΈ Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - name: π¦ Setup Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: π Generate docs | |
| run: cargo doc --no-deps --locked | |
| - name: π Create index.html redirect | |
| run: echo '<meta http-equiv="refresh" content="0; url=adguardian/index.html">' > target/doc/index.html | |
| - name: π Publish docs | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.BOT_TOKEN || secrets.GITHUB_TOKEN }} | |
| publish_dir: ./target/doc | |
| publish_branch: docs-src | |
| # cname: adguardian-term.as93.net |