Skip to content

Update README

Update README #7

Workflow file for this run

name: Release
on:
pull_request:
merge_group:
workflow_dispatch:
push:
branches:
- main
tags:
- "v*"
jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write # Required for OIDC token exchange
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
- name: Test
run: |
cargo test
git checkout .
- name: Dry run
if: github.ref_type != 'tag'
run: cargo publish --dry-run
- uses: rust-lang/crates-io-auth-action@v1
if: github.ref_type == 'tag'
id: auth
- name: Publish crate
if: github.ref_type == 'tag'
run: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}