|
58 | 58 | env: |
59 | 59 | SLACK_BOT_TOKEN: op://platform/slack-bot/SLACK_BOT_TOKEN |
60 | 60 | SLACK_CHANNEL_ID: op://platform/slack-bot/SLACK_CHANNEL_ID |
61 | | - HARBOR_USER: op://platform/harbor/username |
62 | | - HARBOR_PASS: op://platform/harbor/password |
63 | 61 | PAT_TOKEN: op://platform/github-commit-pat/credential |
64 | 62 |
|
65 | 63 | # Label QA as running and notify Slack (only for non-draft PRs) |
@@ -272,27 +270,14 @@ jobs: |
272 | 270 | ${{ steps.secret-scan.outcome == 'success' && 'success' || 'failure' |
273 | 271 | }} |
274 | 272 |
|
275 | | - - name: Login to Harbor |
| 273 | + - name: Publish Helm charts to GitHub Pages |
276 | 274 | if: | |
277 | | - github.event_name == 'push' || |
278 | | - (github.event_name == 'pull_request' && github.event.pull_request.draft == false) |
279 | | - uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3 |
| 275 | + github.event_name == 'push' && |
| 276 | + startsWith(github.ref, 'refs/tags/') |
| 277 | + uses: stefanprodan/helm-gh-pages@v1.7.0 |
280 | 278 | with: |
281 | | - registry: harbor.settlemint.com |
282 | | - username: ${{ env.HARBOR_USER }} |
283 | | - password: ${{ env.HARBOR_PASS }} |
284 | | - |
285 | | - - name: Package chart |
286 | | - if: | |
287 | | - github.event_name == 'push' || |
288 | | - (github.event_name == 'pull_request' && github.event.pull_request.draft == false) |
289 | | - run: bun run package:pack |
290 | | - |
291 | | - - name: Push chart to Harbor |
292 | | - if: | |
293 | | - github.event_name == 'push' || |
294 | | - (github.event_name == 'pull_request' && github.event.pull_request.draft == false) |
295 | | - run: bun run package:push:harbor |
| 279 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 280 | + charts_dir: charts |
296 | 281 |
|
297 | 282 | # Check PR review status (PR and PR review events only) |
298 | 283 | - name: Check PR review status |
|
0 commit comments