forked from LukWebsForge/TldrProgress
-
-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (62 loc) · 1.79 KB
/
go.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Go
on:
push:
branches: [ main ]
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2
with:
go-version: ^1.20
- uses: actions/setup-node@v2
with:
node-version: '18'
- uses: actions/checkout@v2
- name: Setup Task
run: curl -sL https://taskfile.dev/install.sh | sh
- name: Build using Taskfile.yml
run: ./bin/task build
- uses: actions/upload-artifact@v2
with:
name: compiled-application-amd64-ubuntu
path: out/*
release:
runs-on: ubuntu-latest
# Only create a release if a new tags has been pushed: https://stackoverflow.com/a/58478262/4106848
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/setup-go@v2
with:
go-version: ^1.20
- uses: actions/setup-node@v2
with:
node-version: '18'
- uses: actions/checkout@v2
- name: Setup Task
run: curl -sL https://taskfile.dev/install.sh | sh
- name: Build using Taskfile.yml
run: ./bin/task release
- uses: actions/upload-artifact@v2
with:
name: compiled-application-amd64-ubuntu
path: out/*
- uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
out/update_linux_amd64
out/update_linux_arm
out/update_windows_amd64.exe
draft: true
name: Release ${{ github.ref }}
body: |
Changes in this Release
- First Change
- Second Change
- [ ] You've listed all important changes / pull requests