File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 7
7
jobs :
8
8
build :
9
9
name : Build
10
- runs-on : ubuntu-18.04
10
+ runs-on : ubuntu-latest
11
11
steps :
12
12
- name : Set up Go 1.x
13
13
uses : actions/setup-go@v2
@@ -16,20 +16,20 @@ jobs:
16
16
17
17
- name : Check out code into the Go module directory
18
18
uses : actions/checkout@v2
19
-
19
+
20
20
- name : Download tags which the git command needs later
21
21
run : git fetch --prune --unshallow
22
22
23
23
- name : Runnning build/generation script
24
24
shell : bash
25
25
run : |
26
26
bash ./release.sh
27
-
27
+
28
28
- name : Generate tag name
29
- run : echo "TAG_NAME=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
29
+ run : echo "TAG_NAME=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
30
30
- name : Generate release title
31
31
run : echo "RTITLE=$(git log -n 1 --oneline | cut -d' ' -f2- -)" >> $GITHUB_ENV
32
-
32
+
33
33
- name : Upload release
34
34
uses : softprops/action-gh-release@v1
35
35
with :
@@ -40,12 +40,12 @@ jobs:
40
40
body_path : release.md
41
41
env :
42
42
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43
-
44
-
43
+
44
+
45
45
- name : Delete older releases
46
46
uses :
dev-drprasad/[email protected]
47
47
with :
48
48
keep_latest : 7
49
- delete_tags : true
49
+ delete_tags : true
50
50
env :
51
51
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments