Skip to content

Commit

Permalink
fix: release (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
jclab-joseph authored Oct 4, 2024
1 parent 447ff5c commit c6add2c
Showing 1 changed file with 37 additions and 20 deletions.
57 changes: 37 additions & 20 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,26 +67,43 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- run: mkdir dist

- name: Download artifacts
uses: actions/download-artifact@v3
with:
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: Create GitHub Release
id: create_release
uses: actions/create-release@v1
- 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
token: ${{ secrets.GITHUB_TOKEN }}

- name: Upload release artifacts
uses: actions/upload-release-asset@v1
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 c6add2c

Please sign in to comment.