Skip to content

Commit eaeaff8

Browse files
committed
Publish new provider version
1 parent 5223124 commit eaeaff8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/release.yaml

+8-1
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,11 @@ jobs:
5555
SPACELIFT_API_KEY_ID: ${{ secrets.SPACELIFT_API_KEY_ID }}
5656
SPACELIFT_API_KEY_SECRET: ${{ secrets.SPACELIFT_API_KEY_SECRET }}
5757
run:
58-
spacectl provider create-version --type=nexus
58+
spacectl provider create-version --type=nexus
59+
60+
- name: Publish provider
61+
if: startsWith(github.ref, 'refs/tags/')
62+
run: |
63+
spacectl provider list-versions --type nexus -o json < versions.json
64+
VERSION_ID=$(jq --arg version "${{ github.ref_name }}" '.versions[] | select(.number == $version) | .id' versions.json)
65+
spacectl provider publish-version --type=nexus --version=$VERSION_ID

0 commit comments

Comments
 (0)