Skip to content

Commit f116be7

Browse files
committed
ci: improve artifacts uploading
1 parent 495f929 commit f116be7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/release.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ jobs:
1919
permissions:
2020
contents: write
2121

22+
outputs:
23+
tag_name: ${{ steps.tag_check.outputs.tag_name }}
24+
version: ${{ steps.version_dart.outputs.version }}
25+
2226
steps:
2327
- name: Checkout code
2428
uses: actions/checkout@v4
@@ -186,6 +190,7 @@ jobs:
186190
187191
build_changelog_cli:
188192
needs: release
193+
if: ${{ !inputs.dry_run }}
189194
defaults:
190195
run:
191196
working-directory: changelog_cli
@@ -216,7 +221,8 @@ jobs:
216221
path: changelog_cli/build/${{ matrix.os }}/${{ matrix.binary-name }}
217222

218223
upload_artifacts:
219-
needs: build_changelog_cli
224+
needs: [release, build_changelog_cli]
225+
if: ${{ !inputs.dry_run }}
220226
name: Upload Artifacts to GitHub Release
221227
runs-on: ubuntu-latest
222228
permissions:
@@ -242,5 +248,6 @@ jobs:
242248
- name: Upload artifacts to existing release
243249
uses: softprops/action-gh-release@v1
244250
with:
251+
tag_name: ${{ needs.release.outputs.tag_name }}
245252
files: bin-*/*
246253
draft: false # Publish the release after artifacts are uploaded

0 commit comments

Comments
 (0)