-
Notifications
You must be signed in to change notification settings - Fork 191
47 lines (36 loc) · 1.02 KB
/
autorelease.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
45
46
47
name: Create Releases
on:
push:
tags: v[0-9]+.[0-9]+.[0-9]+
branches: main
workflow_dispatch:
jobs:
tagged-release:
name: "Tagged Release"
if: startsWith( github.ref, 'refs/tags/v')
runs-on: "ubuntu-latest"
steps:
- name: Go 1.21
uses: actions/setup-go@v4
with:
go-version: ^1.20
id: go
- id: install-secret-key
name: GPG Secret Key(s)
run: |
cat <(echo -e "${{ secrets.CLOUDFOX_GPG }}") | gpg --batch --import
gpg --list-secret-keys --keyid-format LONG
- name: Check Out Code
uses: actions/checkout@v4
- name: Git Fetch Tags
run: git fetch --prune --unshallow --tags -f
- name: Make binaries
working-directory: .
run: make release
- name: Release binaries
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
./cloudfox/*