-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (39 loc) · 1007 Bytes
/
release.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
name: Release
on:
release:
types:
- published
jobs:
releaser:
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get tag
id: get_tag
run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "^1.22"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4.4.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
version: latest
args: release --rm-dist
- name: Tag sub-modules
env:
RELEASE_VERSION: ${{ steps.get_tag.outputs.tag }}
CI: true
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git checkout main
git pull
make release-modules
git push
git push --tags