Skip to content

Commit 5b25c5c

Browse files
committed
ci(workflow): update Go version
- Bump Go version in setup-go action to ^1.25 - Reindent workflow file
1 parent aac6c7c commit 5b25c5c

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

.github/workflows/release.yml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
1+
---
12
name: Release
23

34
on:
45
push:
56
tags:
6-
- 'v*'
7+
- 'v*'
78

89
jobs:
910
build:
1011
name: Build
1112
runs-on: ubuntu-latest
1213
steps:
14+
- name: Set up Go 1.x
15+
uses: actions/setup-go@v2
16+
with:
17+
go-version: ^1.25
18+
id: go
1319

14-
- name: Set up Go 1.x
15-
uses: actions/setup-go@v2
16-
with:
17-
go-version: ^1.16
18-
id: go
20+
- name: Check out code into the Go module directory
21+
uses: actions/checkout@v2
22+
with:
23+
fetch-depth: 0
1924

20-
- name: Check out code into the Go module directory
21-
uses: actions/checkout@v2
22-
with:
23-
fetch-depth: 0
25+
- name: Get dependencies
26+
run: |
27+
go get -v -t ./...
2428
25-
- name: Get dependencies
26-
run: |
27-
go get -v -t ./...
29+
- name: Build
30+
run: |
31+
./build.sh build
2832
29-
- name: Build
30-
run: |
31-
./build.sh build
32-
33-
- run: |
34-
set -x
35-
tag_name="${GITHUB_REF##*/}"
36-
gh release create "$tag_name" build/*
37-
env:
38-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
- run: |
34+
set -x
35+
tag_name="${GITHUB_REF##*/}"
36+
gh release create "$tag_name" build/*
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)