name: Publish Crate
on:
push:
tags:
- 'v*'
# allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
uses: ./.github/workflows/build.yaml
publish:
name: Deploy a new version of rsoundcloud to crate.io
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Publish crate
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo publish --no-verify