Skip to content

Commit

Permalink
fix: release pipeline should not process release when no package vers…
Browse files Browse the repository at this point in the history
…ion update

Signed-off-by: seven <[email protected]>
  • Loading branch information
Blankll committed Jul 14, 2024
1 parent 69e9a8c commit f79b325
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: distributions release
run-name: ${{ github.event.head_commit.message }}
on:
push:
branches: [ master ]


concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -120,23 +118,21 @@ jobs:
${{ steps.changelog.outputs.compareurl }}
${{ steps.changelog.outputs.changelog }}
- run: echo "successful - ${{ steps.create_tag.outputs.successful }}"
- name: Download Distribution Binaries
uses: actions/download-artifact@v4
if: steps.tag_release.outputs.successful
if: steps.tag_release.outputs.successful == 'true'
with:
path: artifacts
merge-multiple: true
- name: Generate changelog
uses: jaywcjlove/changelog-generator@main
if: steps.tag_release.outputs.successful
if: steps.tag_release.outputs.successful == 'true'
id: changelog
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Release App
uses: softprops/action-gh-release@v2
if: steps.tag_release.outputs.successful
if: steps.tag_release.outputs.successful == 'true'
with:
tag_name: ${{ steps.tag_release.outputs.version }}
name: ${{ steps.tag_release.outputs.version }}
Expand All @@ -148,7 +144,7 @@ jobs:
${{ github.workspace }}/artifacts/**/*

- name: Distribute Binaries to R2
if: steps.tag_release.outputs.successful
if: steps.tag_release.outputs.successful == 'true'
uses: ryand56/r2-upload-action@master
with:
r2-account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
Expand Down

0 comments on commit f79b325

Please sign in to comment.