From 827550b22280520383b6d9bc4995bdf8c2631283 Mon Sep 17 00:00:00 2001 From: Eve <120014766+eve-mem@users.noreply.github.com> Date: Tue, 21 Nov 2023 10:45:46 +0000 Subject: [PATCH] Update build.yml with release --- .github/workflows/build.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 188f21d..fd121c1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,10 +11,10 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: 1.15 @@ -37,10 +37,19 @@ jobs: GOARCH: amd64 - name: Archive production artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: dwarf2json path: | dwarf2json-linux-amd64 dwarf2json-windows-amd64.exe dwarf2json-darwin-amd64 + + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: | + dwarf2json-linux-amd64 + dwarf2json-windows-amd64.exe + dwarf2json-darwin-amd64