Skip to content

Commit

Permalink
release: Use GitHub Actions for manually triggered builds and artifac…
Browse files Browse the repository at this point in the history
…t uploads (#3397)
  • Loading branch information
JoeKar authored Jul 21, 2024
1 parent d173e52 commit e042bb3
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e042bb3

Please sign in to comment.