From e042bb35146d92a49986b2233557ecac94b0e0aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6ran=20Karl?= <3951388+JoeKar@users.noreply.github.com> Date: Sun, 21 Jul 2024 13:10:26 +0200 Subject: [PATCH] release: Use GitHub Actions for manually triggered builds and artifact uploads (#3397) --- .github/workflows/release.yaml | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 00000000..7a5aa9c3 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,36 @@ +name: Release builds +on: + workflow_dispatch: # Allows manual trigger + # push: + # tags: + # - 'v*.*.*' # automatically react on semantic versioned tags +jobs: + release: + strategy: + matrix: + go-version: [1.19.x] + os: [ubuntu-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Setup + uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go-version }} + cache: false + + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + fetch-tags: true + + - name: Build + run: tools/cross-compile.sh + + - name: Publish + uses: softprops/action-gh-release@v2 + with: + files: binaries/* + + - name: Cleanup + run: rm -rf binaries