Skip to content

release 0.3.0 (#147) #22

release 0.3.0 (#147)

release 0.3.0 (#147) #22

Workflow file for this run

name: Release
permissions:
pull-requests: write
contents: write
on:
push:
branches:
- release
jobs:
# Release unpublished packages.
release-plz-release:
name: Release-plz release
runs-on: self-hosted
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run release-plz
uses: release-plz/[email protected]
with:
command: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_TOKEN }}
# Create a PR with the new versions and changelog, preparing the next release.
release-plz-pr:
name: Release-plz PR
runs-on: self-hosted
concurrency:
group: release-plz-${{ github.ref }}
cancel-in-progress: false
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run release-plz
uses: release-plz/[email protected]
with:
command: release-pr
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_TOKEN }}
docs:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- name: Generate Docs
run: cargo doc --no-deps --document-private-items
- name: Add index.html
run: |
echo '<meta http-equiv="refresh" content="0; url=your_crate_name/index.html">' > target/doc/index.html
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/doc