fix(ci): Use a different GitHub action to release the crate to Crates.io [skip ci]

This commit is contained in:
2024-11-25 19:24:24 -07:00
parent 4a8b7eb837
commit 02a1303557
+4 -14
View File
@@ -1,6 +1,3 @@
# Adapted from https://github.com/joshka/github-workflows/blob/main/.github/workflows/rust-release-plz.yml
# Thanks to joshka for permission to use this template!
name: Create release
permissions:
@@ -99,11 +96,9 @@ jobs:
run: |
git push origin --follow-tags
release-plz:
# see https://release-plz.ieni.dev/docs/github
# for more information
release-crate:
needs: bump
name: Release-plz
name: Release Crate
runs-on: ubuntu-latest
steps:
- name: Check if actor is repository owner
@@ -118,11 +113,6 @@ jobs:
fetch-depth: 0
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: Run release-plz
uses: MarcoIeni/release-plz-action@v0.5
- uses: katyo/publish-crates@v2
with:
command: release
tag_name: ${{ env.VERSION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}