Skip to content

Commit

Permalink
workflow separation
Browse files Browse the repository at this point in the history
  • Loading branch information
krossgg committed Nov 10, 2024
1 parent 70aa509 commit 464cf1c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/publish-on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
runs-on: ubuntu-latest
outputs:
CHANGELOG: ${{ steps.changelog.outputs.changelog }}
TWENTY: ${{ contains(github.event.release.tag, '1.20.1') }}
TWENTYONE: ${{ contains(github.event.release.tag, '1.21') }}
BOTH: ${{ !contains(github.event.release.tag, '1.20.1') && !contains(github.event.release.tag, '1.21') }}
permissions:
contents: write
pull-requests: read
Expand All @@ -36,6 +39,7 @@ jobs:
publish-20:
name: 1.20.1
needs: [ meta ]
if: ${{ needs.meta.outputs.TWENTY || needs.meta.outputs.BOTH }}
secrets: inherit
uses: ./.github/workflows/publish.yml
with:
Expand All @@ -48,6 +52,7 @@ jobs:
publish-21:
name: 1.21.1
needs: [ meta ]
if: ${{ needs.meta.outputs.TWENTYONE || needs.meta.outputs.BOTH }}
secrets: inherit
uses: ./.github/workflows/publish.yml
with:
Expand Down

0 comments on commit 464cf1c

Please sign in to comment.