Skip to content

Commit f899d79

Browse files
committed
- [!] fix for github pipeline
1 parent d510a71 commit f899d79

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/go-release-build.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99

1010
env:
1111
GO111MODULE: off
12+
# to fix https://github.com/niemeyer/gopkg/issues/78
13+
# https://github.com/niemeyer/gopkg/issues/78#issuecomment-1573422305
14+
GOPROXY: https://proxy.golang.org
1215

1316
jobs:
1417
build:
@@ -20,12 +23,6 @@ jobs:
2023
with:
2124
go-version: 1.17
2225

23-
-
24-
name: Install Cloudsmith CLI
25-
run: pip install --upgrade cloudsmith-cli
26-
# Cloudsmith CLI tooling for pushing releases
27-
# See https://help.cloudsmith.io/docs/cli
28-
2926
-
3027
name: Checkout
3128
uses: actions/checkout@v2
@@ -53,6 +50,13 @@ jobs:
5350
env:
5451
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5552

53+
-
54+
name: Install Cloudsmith CLI
55+
if: success() && startsWith(github.ref, 'refs/tags/')
56+
run: pip install --upgrade cloudsmith-cli
57+
# Cloudsmith CLI tooling for pushing releases
58+
# See https://help.cloudsmith.io/docs/cli
59+
5660
# Publish to cloudsmith repo
5761
-
5862
name: Publish package to cloudsmith

0 commit comments

Comments
 (0)