release-crates.io #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |