Skip to content

Publish New Version

Publish New Version #5

Workflow file for this run

name: Publish New Version
on:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Ensures history is available for tags
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Bump version and create tag
run: |

Check failure on line 26 in .github/workflows/rust.yml

View workflow run for this annotation

GitHub Actions / Publish New Version

Invalid workflow file

The workflow is not valid. .github/workflows/rust.yml (Line: 26, Col: 12): Unrecognized named-value: 'VERSION'. Located at position 1 within expression: VERSION
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
cargo install cargo-bump
VERSION=$(cargo bump patch)
git commit -am "Bump version to ${{VERSION}}"
git tag $VERSION
git push && git push --tags
git branch $VERSION