Skip to content

add publish workflow #10

add publish workflow

add publish workflow #10

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
name: Publish Crate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Publish to crates.io
uses: actions-rs/cargo@v1
with:
command: publish
args: --token ${{ secrets.CRATES_TOKEN }}
env:
CARGO_TERM_COLOR: always