Skip to content

Update deployment.yml #7

Update deployment.yml

Update deployment.yml #7

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
env:
RELEASE_TAG: ${{ github.ref }}
run: |
mv Cargo.toml Cargo.toml.orig
sed "s/0\\.0\\.0/${RELEASE_TAG##*\/v}/" Cargo.toml.orig >Cargo.toml
- name: dry-run
run: cargo publish --dry-run --allow-dirty
- name: publish
run: cargo publish