-
Notifications
You must be signed in to change notification settings - Fork 3
62 lines (58 loc) · 1.71 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Release agents with goreleaser
on:
push:
tags:
- v*.*.*
jobs:
discovery:
runs-on: ubuntu-latest
name: Release discovery
defaults:
run:
working-directory: .
steps:
- uses: actions/checkout@v3
- name: Unshallow Fetch
run: git fetch --prune --unshallow
- uses: actions/setup-go@v3
with:
go-version: 1.21
- name: Export SDK Version # exports the SDK_VERSION to be used by the goreleaser
run: echo "SDK_VERSION=$(make sdk-version)" >> $GITHUB_ENV
- name: Discovery Release
uses: goreleaser/goreleaser-action@v4.2.0
with:
args: release -f .goreleaser-da.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
traceability:
runs-on: ubuntu-latest
name: Release traceability
defaults:
run:
working-directory: .
steps:
- uses: actions/checkout@v3
- name: Unshallow Fetch
run: git fetch --prune --unshallow
- uses: actions/setup-go@v3
with:
go-version: 1.21
- name: Export SDK Version # exports the SDK_VERSION to be used by the goreleaser
run: echo "SDK_VERSION=$(make sdk-version)" >> $GITHUB_ENV
- name: Traceability Release
uses: goreleaser/goreleaser-action@v4.2.0
with:
args: release -f .goreleaser-ta.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
notifyTeamsChannel:
needs: [discovery, traceability]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Notify Teams channel
env:
TEAMS_WEBHOOK_URL: ${{ secrets.TEAMS_WEBHOOK_URL }}
TAG: ${{ github.ref_name }}
run: ./release.sh