Skip to content

Commit

Permalink
Fix incorrect trigger of post-release workflow (#7)
Browse files Browse the repository at this point in the history
Co-authored-by: Matej Almasi <¨[email protected]¨>
  • Loading branch information
matej-almasi and Matej Almasi authored Dec 10, 2024
1 parent 57417b9 commit 0859f4f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/post-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@
# https://eugene-babichenko.github.io/blog/2020/05/09/github-actions-cross-platform-auto-releases/
# https://github.com/crate-ci/typos

name: post-release
name: Post release
on:
push:
branches:
- main
tags:
- "v*"

Expand All @@ -28,6 +26,8 @@ env:

jobs:
publish-to-crates:
if: github.ref == 'refs/heads/main'

name: Publish to crates.io

runs-on: ubuntu-latest
Expand All @@ -45,6 +45,8 @@ jobs:
run: cargo publish

create-release:
if: github.ref == 'refs/heads/main'

name: Create release

runs-on: ubuntu-latest
Expand Down

0 comments on commit 0859f4f

Please sign in to comment.