|
64 | 64 | prime-username: ${{ env.PRIME_REGISTRY_USERNAME }} |
65 | 65 | prime-password: ${{ env.PRIME_REGISTRY_PASSWORD }} |
66 | 66 | make-target: image-push |
67 | | - push-to-prime: true |
| 67 | + push-to-prime: ${{ !contains(github.ref_name, '-rc') }} |
68 | 68 | - name: Cleanup checksum files # in order to avoid goreleaser dirty state error, remove once rancher/ecm-distro-tools/actions/publish-image@main gets updated |
69 | 69 | run: rm -f slsactl_*_checksums.txt* |
70 | 70 |
|
@@ -113,14 +113,14 @@ jobs: |
113 | 113 | install -m 755 goreleaser /usr/local/bin/goreleaser |
114 | 114 | fi |
115 | 115 | rm -f "${FILE}" goreleaser |
116 | | - - name: Create release |
| 116 | + - name: Create release (DRAFT) |
117 | 117 | env: |
118 | 118 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required for creating GH release |
119 | 119 | GORELEASER_CURRENT_TAG: ${{ github.ref_name }} # specify the tag to be released |
120 | 120 | id: goreleaser |
121 | 121 | shell: bash |
122 | 122 | run: |- |
123 | | - goreleaser release --clean --verbose |
| 123 | + goreleaser release --clean --verbose --draft |
124 | 124 | if [[ ! -f dist/metadata.json ]] || [[ ! -s dist/metadata.json ]]; then |
125 | 125 | echo "Missing required file: dist/metadata.json" |
126 | 126 | exit 1 |
@@ -180,6 +180,11 @@ jobs: |
180 | 180 | git commit -m "Update charts to version $version" |
181 | 181 | git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git |
182 | 182 | git push origin "$charts_branch" |
| 183 | + - name: Publish GitHub release |
| 184 | + env: |
| 185 | + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 186 | + run: | |
| 187 | + gh release edit "${{ github.ref_name }}" --draft=false |
183 | 188 |
|
184 | 189 | dispatch-chart-release: |
185 | 190 | permissions: |
|
0 commit comments