Skip to content

chore(ci): improve workflows #3

chore(ci): improve workflows

chore(ci): improve workflows #3

Workflow file for this run

on:
push:
tags:
- "v*"
name: 📦 Cargo Publish
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: 🛒 Checkout repository
uses: actions/checkout@v2
- name: ⚡ Cache
uses: actions/cache@v2
with:
path: ~/.cargo
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: 🦀 Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: 🚀 Publish
run: cargo publish --token ${{ secrets.CARGO_TOKEN }}
env:
CARGO_INCREMENTAL: 0