name: Publish on: push: tags: - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 jobs: Publish: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: hecrj/setup-rust-action@v1 with: rust-version: stable components: rustfmt - name: Publish to crates.io run: cargo publish --token ${{ secrets.cratesio_token }}