File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7+ workflow_dispatch :
8+ inputs :
9+ tag_name :
10+ description : " Release tag to upload assets to (e.g., v0.1.1)"
11+ required : true
12+ type : string
713
814env :
915 CARGO_TERM_COLOR : always
@@ -15,6 +21,7 @@ permissions:
1521jobs :
1622 release-please :
1723 name : Release Please
24+ if : github.event_name == 'push'
1825 runs-on : ubuntu-latest
1926 outputs :
2027 release_created : ${{ steps.release.outputs.release_created }}
2835 build :
2936 name : Build (Linux)
3037 needs : release-please
31- if : ${{ needs.release-please.outputs.release_created }}
38+ if : >-
39+ always() &&
40+ (needs.release-please.outputs.release_created == 'true' || github.event_name == 'workflow_dispatch')
3241 runs-on : ubuntu-22.04
3342 steps :
3443 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5463 env :
5564 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5665 run : |
57- gh release upload ${{ needs.release-please.outputs.tag_name }} \
66+ TAG="${{ needs.release-please.outputs.tag_name || github.event.inputs.tag_name }}"
67+ gh release upload "$TAG" \
5868 target/release/ado-aw-linux-x64 \
5969 target/release/checksums.txt \
6070 --clobber
You can’t perform that action at this time.
0 commit comments