Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jclab-joseph authored Oct 3, 2024
1 parent a79a381 commit 7929f61
Showing 1 changed file with 35 additions and 21 deletions.
56 changes: 35 additions & 21 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,29 +67,43 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- run: mkdir dist

- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Download artifacts
uses: actions/download-artifact@v3
with:
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
body: |
Release version ${{ github.ref_name }}.
draft: false
prerelease: false
generate_release_notes: true

- name: Upload release artifacts
uses: actions/upload-release-asset@v1
name: build-RelWithDebInfo-Win32
path: dist/drltrace-RelWithDebInfo-Win32

- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: build-RelWithDebInfo-x64
path: dist/drltrace-RelWithDebInfo-x64

- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: build-Debug-Win32
path: dist/drltrace-Debug-Win32

- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: build-Debug-x64
path: dist/drltrace-Debug-x64

- run: |
(cd dist && zip -r drltrace-RelWithDebInfo-Win32.zip ./drltrace-RelWithDebInfo-Win32)
(cd dist && zip -r drltrace-RelWithDebInfo-x64.zip ./drltrace-RelWithDebInfo-x64)
(cd dist && zip -r drltrace-Debug-Win32.zip ./drltrace-Debug-Win32)
(cd dist && zip -r drltrace-Debug-x64.zip ./drltrace-Debug-x64)
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/
asset_name: build-${{ matrix.config }}-${{ matrix.platform }}.zip
asset_content_type: application/zip
files: |
dist/drltrace-*.zip

0 comments on commit 7929f61

Please sign in to comment.