-
Notifications
You must be signed in to change notification settings - Fork 0
84 lines (70 loc) · 2.13 KB
/
go.yaml
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: build-git-get
on: [push]
permissions:
contents: write
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/master'
steps:
# UPDATE_HERE
# https://github.com/actions/checkout/releases
- name: Check out code into the Go module directory
uses: actions/checkout@v4
# UPDATE_HERE
# https://github.com/asdf-vm/actions/releases
- name: Install asdf & tools
uses: asdf-vm/actions/install@v3
- name: Check out full code history
run: |
git fetch --prune --unshallow
git pull --tags
- name: Test and Build
run: |
make
- name: Slack Notification
uses: 8398a7/action-slack@v3
if: always()
with:
status: ${{ job.status }}
fields: repo,message # commit,author,action,eventName,ref,workflow,job,took
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
release:
name: Release
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
# UPDATE_HERE
# https://github.com/actions/checkout/releases
- name: Check out code into the Go module directory
uses: actions/checkout@v4
# UPDATE_HERE
# https://github.com/asdf-vm/actions/releases
- name: Install asdf & tools
uses: asdf-vm/actions/install@v3
- name: Check out full code history
run: |
git fetch --prune --unshallow
git pull --tags
- name: Test and Build
run: |
make
- name: Release
shell: bash
run: |
git tag "$(svu next)"
git push --tags
goreleaser release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
- name: Slack Notification
uses: 8398a7/action-slack@v3
if: always()
with:
status: ${{ job.status }}
fields: repo,message # commit,author,action,eventName,ref,workflow,job,took
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}