fix(ci): Use a different GitHub action to release the crate to Crates.io [skip ci]
This commit is contained in:
@@ -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
|
name: Create release
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
@@ -99,11 +96,9 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git push origin --follow-tags
|
git push origin --follow-tags
|
||||||
|
|
||||||
release-plz:
|
release-crate:
|
||||||
# see https://release-plz.ieni.dev/docs/github
|
|
||||||
# for more information
|
|
||||||
needs: bump
|
needs: bump
|
||||||
name: Release-plz
|
name: Release Crate
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check if actor is repository owner
|
- name: Check if actor is repository owner
|
||||||
@@ -118,11 +113,6 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Install Rust stable
|
- name: Install Rust stable
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
- name: Run release-plz
|
- uses: katyo/publish-crates@v2
|
||||||
uses: MarcoIeni/release-plz-action@v0.5
|
|
||||||
with:
|
with:
|
||||||
command: release
|
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
||||||
tag_name: ${{ env.VERSION }}
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user