Skip to content

Commit fce2075

Browse files
committed
ci: fix releasing of executables and dist
1 parent 302c293 commit fce2075

File tree

3 files changed

+23
-21
lines changed

3 files changed

+23
-21
lines changed

.github/workflows/CI.yml

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ jobs:
130130
name: exe-${{ matrix.os }}
131131
path: |
132132
./exe
133-
retention-days: 1
133+
retention-days: 7
134134

135135
Test:
136136
name: Test-${{ matrix.os }}
@@ -276,31 +276,33 @@ jobs:
276276
uses: actions/download-artifact@v4
277277
with:
278278
pattern: exe-*
279-
path: exe/
279+
path: ./exe/
280+
merge-multiple: true
281+
282+
- name: Chmod executables
283+
shell: bash
284+
run: |
285+
chmod +x -R ./exe/
280286
281287
- name: Download Dist
282288
uses: actions/download-artifact@v4
283289
with:
284290
name: dist
285291
path: dist/
286292

287-
- name: Place Artifacts
288-
shell: bash
293+
- name: Tar Dist
289294
run: |
290-
mv -v ./dist/ ./dist-artifacts
291-
mv -v ./dist-artifacts/* ./
292-
293-
chmod +x -R ./exe/
295+
tar -czf modern.tgz ./dist/modern
296+
tar -czf legacy.tgz ./dist/legacy
297+
ls -R ./dist/
298+
continue-on-error: true
294299

295-
- name: Draft the release
296-
uses: meeDamian/github-release@2.0
300+
- name: Create Release in this repo
301+
uses: softprops/action-gh-release@v2
297302
with:
298-
token: ${{ secrets.GITHUB_TOKEN }}
299-
gzip: folders
300-
draft: true
301-
files: >
302-
./exe/setup-cpp-x64-windows.exe
303-
./exe/setup-cpp-x64-linux
304-
./exe/setup-cpp-x64-macos
305-
./dist/legacy/
306-
./dist/modern/
303+
files: |
304+
./exe/*
305+
modern.tgz
306+
legacy.tgz
307+
generate_release_notes: true
308+
# fail_on_unmatched_files: true

dist/legacy/setup-cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/modern/setup-cpp.mjs.map

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)