46
46
- name : Process build output - Linux
47
47
if : ${{ startsWith(matrix.arch_name, 'linux') }}
48
48
working-directory : bin
49
- run : chmod +x ccomc
49
+ run : |
50
+ mv ./src/ccomc ccomc
51
+ chmod +x ccomc
52
+
53
+ - name : Process build output - Windows
54
+ if : ${{ startsWith(matrix.arch_name, 'windows') }}
55
+ working-directory : bin
56
+ run : |
57
+ mv ./src/ccomc.exe ccomc.exe
58
+ chmod +x ccomc.exe
50
59
51
60
- name : Upload artifact
52
61
uses : actions/upload-artifact@v4
@@ -117,7 +126,7 @@ jobs:
117
126
uses : goreleaser/goreleaser-action@v6
118
127
with :
119
128
version : v2.5.0
120
- args : release --rm-dist
129
+ args : release --clean
121
130
env :
122
131
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
123
132
@@ -157,7 +166,6 @@ jobs:
157
166
curl -sSf -u "${{ secrets.NEXUS_USERNAME }}:${{ secrets.NEXUS_PASSWORD }}" -H "Content-Type: multipart/form-data" --data-binary "@./ccom_${{ matrix.arch }}.deb" "${{ secrets.NEXUS_URL }}/debian-buster/"
158
167
curl -sSf -u "${{ secrets.NEXUS_USERNAME }}:${{ secrets.NEXUS_PASSWORD }}" -H "Content-Type: multipart/form-data" --data-binary "@./ccom_${{ matrix.arch }}.deb" "${{ secrets.NEXUS_URL }}/debian-stretch/"
159
168
curl -sSf -u "${{ secrets.NEXUS_USERNAME }}:${{ secrets.NEXUS_PASSWORD }}" -H "Content-Type: multipart/form-data" --data-binary "@./ccom_${{ matrix.arch }}.deb" "${{ secrets.NEXUS_URL }}/debian-jessie/"
160
- curl -sSf -u "${{ secrets.NEXUS_USERNAME }}:${{ secrets.NEXUS_PASSWORD }}" -H "Content-Type: multipart/form-data" --data-binary "@./ccom_${{ matrix.arch }}.deb" "${{ secrets.NEXUS_URL }}/debian-wheezy/"
161
169
162
170
- name : Deploy to Raspbian
163
171
run : |
@@ -167,13 +175,11 @@ jobs:
167
175
168
176
- name : Deploy to Ubuntu repo
169
177
run : |
170
- curl -sSf -u "${{ secrets.NEXUS_USERNAME }}:${{ secrets.NEXUS_PASSWORD }}" -H "Content-Type: multipart/form-data" --data-binary "@./ccom_${{ matrix.arch }}.deb" "${{ secrets.NEXUS_URL }}/ubuntu-hirsute /"
171
- curl -sSf -u "${{ secrets.NEXUS_USERNAME }}:${{ secrets.NEXUS_PASSWORD }}" -H "Content-Type: multipart/form-data" --data-binary "@./ccom_${{ matrix.arch }}.deb" "${{ secrets.NEXUS_URL }}/ubuntu-groovy /"
178
+ curl -sSf -u "${{ secrets.NEXUS_USERNAME }}:${{ secrets.NEXUS_PASSWORD }}" -H "Content-Type: multipart/form-data" --data-binary "@./ccom_${{ matrix.arch }}.deb" "${{ secrets.NEXUS_URL }}/ubuntu-noble /"
179
+ curl -sSf -u "${{ secrets.NEXUS_USERNAME }}:${{ secrets.NEXUS_PASSWORD }}" -H "Content-Type: multipart/form-data" --data-binary "@./ccom_${{ matrix.arch }}.deb" "${{ secrets.NEXUS_URL }}/ubuntu-jammy /"
172
180
curl -sSf -u "${{ secrets.NEXUS_USERNAME }}:${{ secrets.NEXUS_PASSWORD }}" -H "Content-Type: multipart/form-data" --data-binary "@./ccom_${{ matrix.arch }}.deb" "${{ secrets.NEXUS_URL }}/ubuntu-focal/"
173
181
curl -sSf -u "${{ secrets.NEXUS_USERNAME }}:${{ secrets.NEXUS_PASSWORD }}" -H "Content-Type: multipart/form-data" --data-binary "@./ccom_${{ matrix.arch }}.deb" "${{ secrets.NEXUS_URL }}/ubuntu-bionic/"
174
182
curl -sSf -u "${{ secrets.NEXUS_USERNAME }}:${{ secrets.NEXUS_PASSWORD }}" -H "Content-Type: multipart/form-data" --data-binary "@./ccom_${{ matrix.arch }}.deb" "${{ secrets.NEXUS_URL }}/ubuntu-xenial/"
175
- curl -sSf -u "${{ secrets.NEXUS_USERNAME }}:${{ secrets.NEXUS_PASSWORD }}" -H "Content-Type: multipart/form-data" --data-binary "@./ccom_${{ matrix.arch }}.deb" "${{ secrets.NEXUS_URL }}/ubuntu-trusty/"
176
- curl -sSf -u "${{ secrets.NEXUS_USERNAME }}:${{ secrets.NEXUS_PASSWORD }}" -H "Content-Type: multipart/form-data" --data-binary "@./ccom_${{ matrix.arch }}.deb" "${{ secrets.NEXUS_URL }}/ubuntu-jammy/"
177
183
178
184
- name : Deploy to CentOS repo
179
185
run : |
@@ -196,32 +202,31 @@ jobs:
196
202
matrix :
197
203
config :
198
204
- {
199
- arch : amd64, label: x64
205
+ arch : amd64,
206
+ label : x64
200
207
}
201
208
- {
202
- arch : 386, label: x86
209
+ arch : 386,
210
+ label : x86
203
211
}
204
212
steps :
205
213
- name : Checkout
206
214
uses : actions/checkout@v4
207
215
208
- - name : Get version name
209
- id : get_version
210
- uses : battila7/get-version-action@v2
216
+ - name : Install GoMSI
217
+ run : choco install -y go-msi
211
218
212
219
- name : Download executables
213
220
id : download_exe
214
221
shell : bash
215
- run : | # Remove the last command as soon as this is implemented: https://github.com/goreleaser/goreleaser/issues/1638
216
- hub release download "${GITHUB_REF#refs/tags/}" -i '*windows_${{ matrix.config.arch }}*.zip'
222
+ env :
223
+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
224
+ run : |
225
+ gh release download "${GITHUB_REF#refs/tags/}" -p *windows_${{ matrix.config.arch }}*.zip
217
226
printf "::set-output name=zip::%s\n" *.zip
218
227
unzip -o *.zip && rm -v *.zip
219
228
cp ./bin/ccomc-windows-${{ matrix.config.arch }}/ccomc.exe ./ccomc.exe
220
- env :
221
- GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
222
-
223
- - name : Install GoMSI
224
- run : choco install -y go-msi
229
+ dir
225
230
226
231
- name : Prepare PATH
227
232
shell : bash
@@ -238,7 +243,7 @@ jobs:
238
243
mkdir -p build
239
244
msi="$(basename "$ZIP_FILE" ".zip").msi"
240
245
printf "::set-output name=msi::%s\n" "$msi"
241
- go-msi make --msi "$PWD/$msi" --out "$PWD/build" --version ${{ steps.get_version.outputs.version }}
246
+ go-msi make --msi "$PWD/$msi" --out "$PWD/build" --version ${{ github.ref_name }}
242
247
printf "::set-output name=msi::%s\n" *.msi
243
248
244
249
- name : Upload MSI
@@ -249,16 +254,12 @@ jobs:
249
254
asset_name : ccom_${{ matrix.config.label }}_setup.msi
250
255
tag : ${{ github.ref }}
251
256
252
- deploy-win-installers :
253
- name : Deploy installers
254
- if : startsWith(github.ref, 'refs/tags/')
255
- needs : build-win-installers
256
- runs-on : windows-latest
257
-
258
- steps :
259
- - uses : vedantmgoyal2009/winget-releaser@v2
257
+ - name : Deploy to WinGet
258
+ uses : vedantmgoyal2009/winget-releaser@v2
259
+ continue-on-error : true
260
260
with :
261
261
identifier : ChilliBits.CCom
262
- version : ${{ github.ref }}
263
- release-tag : ${{ github.ref }}
264
- token : ${{ secrets.CR_PAT }}
262
+ version : ${{ github.ref_name }}
263
+ release-tag : ${{ github.ref_name }}
264
+ token : ${{ secrets.CR_PAT }}
265
+ max-versions-to-keep : 10
0 commit comments