We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5223124 commit eaeaff8Copy full SHA for eaeaff8
.github/workflows/release.yaml
@@ -55,4 +55,11 @@ jobs:
55
SPACELIFT_API_KEY_ID: ${{ secrets.SPACELIFT_API_KEY_ID }}
56
SPACELIFT_API_KEY_SECRET: ${{ secrets.SPACELIFT_API_KEY_SECRET }}
57
run:
58
- spacectl provider create-version --type=nexus
+ 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