name: CD
on:
release:
types:
env:
CARGO_TERM_COLOR: always
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: install cargo-release
uses: taiki-e/install-action@69e777b377e4ec209ddad9426ae3e0c1008b0ef3 # ratchet:taiki-e/install-action@v2
with:
tool: cargo-release@0.24
- name: login
run: cargo login "$CARGO_AUTH_KEY"
env:
CARGO_AUTH_KEY: ${{ secrets.CARGO_AUTH_KEY }}
- name: publish
run: cargo release publish --no-confirm --allow-branch "*" --workspace --all-features --execute