File tree 2 files changed +9
-6
lines changed
2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,10 @@ jobs:
107
107
- name : Build release version
108
108
run : cargo build -v --release --features static
109
109
- name : Compress binary
110
- run : cd target/release && zip -9 needle-$GITHUB_REF_NAME-windows-amd64.zip needle
110
+ # Smart way to avoid installing "zip" in Git bash
111
+ # -a: auto-compress
112
+ # Reference: https://stackoverflow.com/a/71023414/845275
113
+ run : cd target/release && tar -a -c -f needle-$GITHUB_REF_NAME-windows-amd64.zip needle
111
114
shell : bash
112
115
- name : Upload binary to the release
113
116
uses : softprops/action-gh-release@v1
Original file line number Diff line number Diff line change 7
7
jobs :
8
8
release-please :
9
9
runs-on : ubuntu-latest
10
- env :
11
- # Use a personal access token to trigger the "publish-release" workflow
12
- # when a new tag is created.
13
- # See: https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#triggering-a-workflow-from-a-workflow
14
- GITHUB_TOKEN : ${{ secrets.ACTIONS_TOKEN }}
15
10
steps :
16
11
- uses : google-github-actions/release-please-action@v3
12
+ env :
13
+ # Use a personal access token to trigger the "publish-release" workflow
14
+ # when a new tag is created.
15
+ # See: https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#triggering-a-workflow-from-a-workflow
16
+ GITHUB_TOKEN : ${{ secrets.ACTIONS_TOKEN }}
17
17
with :
18
18
release-type : rust
You can’t perform that action at this time.
0 commit comments