diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 1e547b3..9b46663 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -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]