Skip to content

Commit

Permalink
Don't create a release on crates.io if other steps failed
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilfred committed Aug 25, 2023
1 parent 8752af7 commit 3f3526d
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@ on:
- "[0-9]+.*"

jobs:
push_crates_io:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: katyo/publish-crates@v1
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

create-release:
runs-on: ubuntu-20.04
steps:
Expand Down Expand Up @@ -63,3 +55,12 @@ jobs:
env:
# (required)
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

push_crates_io:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: katyo/publish-crates@v1
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 comments on commit 3f3526d

Please sign in to comment.