Skip to content

Publish (Patch)

Publish (Patch) #4

Workflow file for this run

name: Publish (Patch)
on: [workflow_dispatch]
env:
CARGO_TERM_COLOR: always
jobs:
publish-release:
name: Publish Release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Install cargo-binstall
uses: cargo-bins/[email protected]
- name: Install cargo-release
run: cargo-binstall cargo-release
- name: Login to Cargo
run: cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Git Config
run: git config user.name "GitHub Action" && git config user.email "[email protected]"
- name: Publish Release
run: cargo-release release patch --execute --no-confirm --config .github/workflows/cargo-release-patch.toml
- name: Logout of Cargo
if: always()
run: cargo logout