Skip to content

Update deployment.yml #14

Update deployment.yml

Update deployment.yml #14

Workflow file for this run

name: Deployment
on:
push:
tags: [ "v*" ]
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_TOKEN }}
jobs:
Deploy:
name: Deploy-Crate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: bump-cargo-version
run: |

Check failure on line 17 in .github/workflows/deployment.yml

View workflow run for this annotation

GitHub Actions / Deployment

Invalid workflow file

The workflow is not valid. .github/workflows/deployment.yml (Line: 17, Col: 14): Unexpected symbol: 'ref##*\/v'. Located at position 8 within expression: github.ref##*\/v
export VERSION=${{ github.ref##*\/v }}
sed -i "s/0.0.0/$VERSION/g" Cargo.toml
- name: dry-run
run: cargo publish --dry-run --allow-dirty
- name: publish
run: cargo publish