File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 runs-on : ubuntu-latest
1515 steps :
1616 - uses : googleapis/release-please-action@v4
17+ id : release-please
1718 with :
1819 config-file : release-please-config.json
1920 manifest-file : .release-please-manifest.json
21+
22+ - name : Dispatch release build
23+ if : ${{ steps.release-please.outputs.releases_created == 'true' }}
24+ env :
25+ GH_TOKEN : ${{ github.token }}
26+ run : gh workflow run release.yml -f tag=${{ steps.release-please.outputs.tag_name }}
Original file line number Diff line number Diff line change 11name : Release
22
33on :
4- push :
5- tags : ["v*"]
4+ workflow_dispatch :
5+ inputs :
6+ tag :
7+ description : " Git tag to build and release (e.g. v0.1.2)"
8+ required : true
9+ type : string
610
711permissions :
812 contents : write
2327
2428 steps :
2529 - uses : actions/checkout@v4
30+ with :
31+ ref : ${{ inputs.tag }}
2632 - uses : dtolnay/rust-toolchain@stable
2733 with :
2834 targets : ${{ matrix.target }}
@@ -54,10 +60,10 @@ jobs:
5460 with :
5561 merge-multiple : true
5662
57- - name : Create GitHub Release
63+ - name : Upload to GitHub Release
5864 uses : softprops/action-gh-release@v2
5965 with :
60- generate_release_notes : true
66+ tag_name : ${{ inputs.tag }}
6167 files : |
6268 diecut-x86_64-linux.tar.gz
6369 diecut-aarch64-macos.tar.gz
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ main() {
1717 echo " - macOS (Apple Silicon / aarch64)" >&2
1818 echo " - Linux (x86_64)" >&2
1919 echo " " >&2
20- echo " You can build from source instead: cargo install --path crates/diecut-cli " >&2
20+ echo " You can build from source instead: cargo install --path . " >&2
2121 exit 1
2222 fi
2323
You can’t perform that action at this time.
0 commit comments