Skip to content

Commit 1037550

Browse files
authored
Merge pull request #50 from raiderrobert/fix/release-binaries
fix: release binaries not building for v0.1.1+
2 parents 7f229cf + 97ebd42 commit 1037550

3 files changed

Lines changed: 18 additions & 5 deletions

File tree

.github/workflows/release-please.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ jobs:
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 }}

.github/workflows/release.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
name: Release
22

33
on:
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

711
permissions:
812
contents: write
@@ -23,6 +27,8 @@ jobs:
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

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)