-
Notifications
You must be signed in to change notification settings - Fork 2
59 lines (50 loc) · 1.33 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
name: Release
on:
push:
branches:
- main
jobs:
tag-release:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get Version from file
id: get-version
uses: juliangruber/[email protected]
with:
path: ./.VERSION
- name: Configure Git
run: |
git config user.email "[email protected]"
git config user.name "$GITHUB_ACTOR"
- name: Set Reftag
id: tag-version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ steps.get-version.outputs.content }}
tag_prefix: ""
cut-release:
runs-on: ubuntu-latest
needs: tag-release
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.email "[email protected]"
git config user.name "$GITHUB_ACTOR"
- name: Set up Go
uses: actions/setup-go@v5
# DO THE REST :grin: