Skip to content

Commit

Permalink
ci: fix releasing of executables and dist
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Feb 11, 2025
1 parent 302c293 commit fce2075
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 21 deletions.
40 changes: 21 additions & 19 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ jobs:
name: exe-${{ matrix.os }}
path: |
./exe
retention-days: 1
retention-days: 7

Test:
name: Test-${{ matrix.os }}
Expand Down Expand Up @@ -276,31 +276,33 @@ jobs:
uses: actions/download-artifact@v4
with:
pattern: exe-*
path: exe/
path: ./exe/
merge-multiple: true

- name: Chmod executables
shell: bash
run: |
chmod +x -R ./exe/
- name: Download Dist
uses: actions/download-artifact@v4
with:
name: dist
path: dist/

- name: Place Artifacts
shell: bash
- name: Tar Dist
run: |
mv -v ./dist/ ./dist-artifacts
mv -v ./dist-artifacts/* ./
chmod +x -R ./exe/
tar -czf modern.tgz ./dist/modern
tar -czf legacy.tgz ./dist/legacy
ls -R ./dist/
continue-on-error: true

- name: Draft the release
uses: meeDamian/github-release@2.0
- name: Create Release in this repo
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
gzip: folders
draft: true
files: >
./exe/setup-cpp-x64-windows.exe
./exe/setup-cpp-x64-linux
./exe/setup-cpp-x64-macos
./dist/legacy/
./dist/modern/
files: |
./exe/*
modern.tgz
legacy.tgz
generate_release_notes: true
# fail_on_unmatched_files: true
2 changes: 1 addition & 1 deletion dist/legacy/setup-cpp.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/modern/setup-cpp.mjs.map

Large diffs are not rendered by default.

0 comments on commit fce2075

Please sign in to comment.