This commit is contained in:
spiritlhl 2024-05-01 08:56:27 +00:00
parent 2feded3abc
commit 3aee9cf120

View File

@ -45,6 +45,24 @@ jobs:
cd cmd
go build -o ../bin/backtrace-${{ matrix.goos }}-${{ matrix.goarch }} -v .
- name: Create Release
id: create_release
uses: actions/create-release@v1
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Description of the release
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./bin/backtrace-${{ matrix.goos }}-${{ matrix.goarch }}
asset_name: backtrace-${{ matrix.goos }}-${{ matrix.goarch }}
asset_content_type: application/octet-stream
strategy:
matrix:
goos: [windows, freebsd, openbsd, linux, darwin]