Skip to content

Commit 640f0dc

Browse files
committed
[build] Tweak release workflow
1 parent 6894eae commit 640f0dc

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ jobs:
1313
with:
1414
fetch-depth: 0
1515

16-
- name: Set up Snapcraft
17-
run: |
18-
sudo apt-get -yq --no-install-suggests --no-install-recommends install snapcraft
19-
2016
- name: Set up Go
2117
uses: actions/setup-go@v2
2218
with:
2319
go-version: '1.17.2'
2420

21+
- name: Set up Snapcraft
22+
run: |
23+
sudo apt-get -yq --no-install-suggests --no-install-recommends install snapcraft
24+
2525
- name: Snapcraft Login
2626
if: success() && startsWith(github.ref, 'refs/tags/v')
2727
env:

.github/workflows/release.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,21 @@ on:
88
jobs:
99
Release:
1010
runs-on: ubuntu-latest
11-
env:
12-
GOPATH: ${{ github.workspace }}
13-
GO111MODULE: off
1411

1512
steps:
1613
- name: Checkout
1714
uses: actions/checkout@v2
1815
with:
19-
path: ./gm/src/github.com/${{ github.repository }}
2016
fetch-depth: 0
2117

22-
- name: Set up Snapcraft
23-
run: |
24-
sudo apt-get -yq --no-install-suggests --no-install-recommends install snapcraft
25-
2618
- name: Set up Go
2719
uses: actions/setup-go@v2
2820
with:
2921
go-version: '1.17.2'
22+
23+
- name: Set up Snapcraft
24+
run: |
25+
sudo apt-get -yq --no-install-suggests --no-install-recommends install snapcraft
3026
3127
- name: Snapcraft Login
3228
if: success() && startsWith(github.ref, 'refs/tags/v')

0 commit comments

Comments
 (0)