Skip to content

Bump version to 1.7.0 #27

Bump version to 1.7.0

Bump version to 1.7.0 #27

Workflow file for this run

# 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