forked from git-bug/git-bug
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (44 loc) · 1.37 KB
/
release.yml
File metadata and controls
54 lines (44 loc) · 1.37 KB
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
45
46
47
48
49
50
51
52
53
54
---
name: Build release binaries
on:
push:
tags:
- "v*"
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build-release:
runs-on: "ubuntu-latest"
permissions:
# unfortunately, this is necessary for creating the release. there is a
# comnunity discussion tracking a request to implement a more granular
# permission that as of writing, has not seen any activity since 2023 [0].
#
# [0]: https://github.com/orgs/community/discussions/68252
contents: write
steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Go
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
with:
go-version: 1.24.2
- name: Build
run: make
- name: Setup minimal git config
run: |
git config --global user.email "action@github.com"
git config --global user.name "GitHub Action"
- name: Test
run: make test
- name: Build binaries
run: make releases
- uses: marvinpinto/action-automatic-releases@919008cf3f741b179569b7a6fb4d8860689ab7f0 # v1.2.1
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
draft: true
prerelease: false
files: dist/*