Skip to content

release-crates.io

release-crates.io #2

name: "release-crates.io"
on:
workflow_dispatch:
jobs:
release-cargo:
environment: release
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
name: Release to crates.io
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Release
run: |
git config --global user.email "2261239+hdevalke@users.noreply.github.com"
git config --global user.name "convco-ci"
rustup toolchain install --profile minimal stable
cargo install --path .
cargo install cargo-release
cargo release "$(convco version --bump)" --execute --no-confirm