Skip to content

Commit

Permalink
ci: Fix Cloudsmith installation by setting PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
francislavoie committed Dec 30, 2020
1 parent 588adf5 commit 9a360cf
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ jobs:
- name: Unshallowify the repo clone
run: git fetch --prune --unshallow

# Cloudsmith CLI tooling for pushing releases
- name: Install Cloudsmith CLI
run: pip install --upgrade cloudsmith-cli

# https://github.community/t5/GitHub-Actions/How-to-get-just-the-tag-name/m-p/32167/highlight/true#M1027
- name: Print Go version and environment
id: vars
Expand All @@ -45,6 +41,9 @@ jobs:
echo "::set-output name=short_sha::$(git rev-parse --short HEAD)"
echo "::set-output name=go_cache::$(go env GOCACHE)"
# Add "pip install" CLI tools to PATH
echo ~/.local/bin >> $GITHUB_PATH
# Parse semver
TAG=${GITHUB_REF/refs\/tags\//}
SEMVER_RE='[^0-9]*\([0-9]*\)[.]\([0-9]*\)[.]\([0-9]*\)\([0-9A-Za-z\.-]*\)'
Expand All @@ -57,6 +56,11 @@ jobs:
echo "::set-output name=tag_patch::${TAG_PATCH}"
echo "::set-output name=tag_special::${TAG_SPECIAL}"
# Cloudsmith CLI tooling for pushing releases
# See https://help.cloudsmith.io/docs/cli
- name: Install Cloudsmith CLI
run: pip install --upgrade cloudsmith-cli

- name: Validate commits and tag signatures
run: |
Expand Down

0 comments on commit 9a360cf

Please sign in to comment.