Skip to content

0.13.3

0.13.3 #45

Workflow file for this run

name: Publish on crates.io
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Update version
run: |
VERSION=${{github.ref_name}}
sed -i -e 's/^version = .*/version = "'$VERSION'"/' Cargo.toml
- name: Publish crate
run: cargo publish --allow-dirty --token ${{secrets.CRATES_IO_API_TOKEN}}