Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0a673d9

Browse files
committed
- [#] only install cloudsmith cli when necessary
1 parent 4bcfd85 commit 0a673d9

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@ jobs:
2020
with:
2121
go-version: 1.17
2222

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-
2923
-
3024
name: Checkout
3125
uses: actions/checkout@v2
@@ -55,6 +49,13 @@ jobs:
5549
env:
5650
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5751

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

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /