@@ -3,6 +3,8 @@ run-name: ${{ github.event.head_commit.message }}
3
3
on :
4
4
push :
5
5
branches : [ master ]
6
+
7
+
6
8
concurrency :
7
9
group : ${{ github.workflow }}-${{ github.ref }}
8
10
cancel-in-progress : true
@@ -91,31 +93,29 @@ jobs:
91
93
file-digest : SHA256
92
94
timestamp-rfc3161 : http://timestamp.acs.microsoft.com
93
95
timestamp-digest : SHA256
96
+ - name : Collect Distribution Binaries
97
+ env :
98
+ PLATFORM : ${{ matrix.os }}
99
+ run : ./scripts/collect-binaries.sh
100
+ shell : bash
94
101
- name : Upload Distribution Binaries
95
102
uses : actions/upload-artifact@v4
96
103
with :
97
104
name : artifacts-${{ matrix.os }}
98
- path : |
99
- ${{ github.workspace }}/src-tauri/target/universal-apple-darwin/release/bundle/dmg/*.dmg
100
- ${{ github.workspace }}/src-tauri/target/${{ matrix.target }}/release/bundle/deb/*.deb
101
- ${{ github.workspace }}/src-tauri/target/${{ matrix.target }}/release/bundle/appimage/*.AppImage
102
- ${{ github.workspace }}\src-tauri\target\${{ matrix.target }}\release\bundle\nsis\*.exe
105
+ path : ${{ github.workspace }}/artifacts/*
103
106
104
107
release :
105
108
needs : pre-release
106
109
runs-on : ubuntu-latest
107
110
steps :
108
111
- name : Github checkout
109
112
uses : actions/checkout@v4
110
- - run : echo "previous_tag=$(git describe --tags --abbrev=0 2>/dev/null || echo '')" >> $GITHUB_ENV
111
113
- name : Tag Release
112
114
uses : jaywcjlove/create-tag-action@main
113
- if : env.previous_tag
114
115
id : tag_release
115
116
with :
116
117
prerelease : true
117
118
token : ${{ secrets.GITHUB_TOKEN }}
118
- package-path : ./package.json
119
119
- name : Download Distribution Binaries
120
120
uses : actions/download-artifact@v4
121
121
if : steps.tag_release.outputs.successful
@@ -138,7 +138,8 @@ jobs:
138
138
${{ steps.changelog.outputs.compareurl }}
139
139
140
140
${{ steps.changelog.outputs.changelog }}
141
- files : ${{ github.workspace }}/artifacts/**/*
141
+ files :
142
+ ${{ github.workspace }}/artifacts/**/*
142
143
143
144
- name : Distribute Binaries to R2
144
145
if : steps.tag_release.outputs.successful
0 commit comments