-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 867 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Release
on:
push:
tags:
- '*'
branches:
- main
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: extractions/setup-just@v1
- name: "Set up Go"
uses: actions/setup-go@v5
with:
go-version: '^1.23.1'
- name: Build binaries
run: just build
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: binaries
path: build/fgc-*
- name: Create GitHub Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: build/fgc-*
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
generate_release_notes: true