Release #6
Workflow file for this run
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 | |
on: | |
release: | |
types: [created] | |
jobs: | |
publish: | |
name: Publish to crates.io | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get release version | |
id: get_version | |
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT | |
- name: Update Cargo.toml version | |
run: | | |
cargo set-version "${{ steps.get_version.outputs.RELEASE_VERSION }}" | |
- name: setup git config | |
run: | | |
git config user.name "GitHub Actions" | |
git config user.email "<>" | |
- name: Commit and push changes | |
uses: devops-infra/action-commit-push@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
commit_message: Replaced foo with bar | |
- name: Publish to crates.io | |
run: cargo publish --token ${CRATES_TOKEN} | |
env: | |
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }} |