# adapted from https://github.com/taiki-e/cargo-hack/blob/main/.github/workflows/release.yml name: crates.io release on: push: tags: - '*' jobs: create-release: if: github.repository_owner == 'sunshowers-code' runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 with: persist-credentials: false - name: Install Rust uses: dtolnay/rust-toolchain@stable - run: cargo publish env: CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} - uses: taiki-e/create-gh-release-action@v1 with: changelog: CHANGELOG.md title: buf-list $version branch: main env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}