Debian Codegraph @

.github/workflows/release.yml

raw symbols SCIP
1 # adapted from https://github.com/taiki-e/cargo-hack/blob/main/.github/workflows/release.yml
2
3 name: crates.io release
4 on:
5 push:
6 tags:
7 - '*'
8
9 jobs:
10 create-release:
11 if: github.repository_owner == 'sunshowers-code'
12 runs-on: ubuntu-latest
13 steps:
14 - uses: actions/checkout@v3
15 with:
16 persist-credentials: false
17 - name: Install Rust
18 uses: dtolnay/rust-toolchain@stable
19 - run: cargo publish
20 env:
21 CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
22 - uses: taiki-e/create-gh-release-action@v1
23 with:
24 changelog: CHANGELOG.md
25 title: buf-list $version
26 branch: main
27 env:
28 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}