jorge/.github/workflows/release.yml

37 lines
747 B
YAML
Raw Normal View History

name: Upload release binaries
on:
push:
tags:
- '*'
jobs:
build:
name: Build Binaries
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, darwin, windows]
goarch: [amd64, arm64]
include:
- goos: windows
ext: '.exe'
steps:
- name: Checkout code
2024-02-21 17:01:27 +01:00
uses: actions/checkout@v4
- name: Set up Go
2024-02-21 17:01:27 +01:00
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Build Binary
run: GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -ldflags="-s -w" -o jorge-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.ext }} .
- name: Release
uses: softprops/action-gh-release@v1
with:
files: "jorge-*"