Skip to content

Release

Release #10

Workflow file for this run

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
run: |
git add Cargo.toml
git commit -m '[Github Actions] update version to ${{ steps.get_version.outputs.RELEASE_VERSION }}'
with:

Check failure on line 31 in .github/workflows/release.yaml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yaml (Line: 31, Col: 9): Unexpected value 'with'
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to crates.io
run: cargo publish --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}