|
9 | 9 | jobs: |
10 | 10 | release: |
11 | 11 | runs-on: ubuntu-latest |
| 12 | + |
12 | 13 | steps: |
13 | | - - name: Checkout |
14 | | - uses: actions/checkout@v2 |
| 14 | + - name: Checkout repo |
| 15 | + uses: actions/checkout@v4 |
15 | 16 | with: |
16 | | - fetch-depth: 0 |
17 | | - |
18 | | - - name: Configure Git |
19 | | - run: | |
20 | | - git config user.name "$GITHUB_ACTOR" |
21 | | - git config user.email "[email protected]" |
| 17 | + fetch-depth: 0 # required for full tag history |
22 | 18 |
|
23 | | - - name: Install Helm |
24 | | - uses: azure/setup-helm@v1 |
| 19 | + - name: Set up Helm |
| 20 | + uses: azure/setup-helm@v3 |
25 | 21 | with: |
26 | | - version: v3.5.4 |
| 22 | + version: v3.12.3 |
27 | 23 |
|
28 | | - - name: Add chart repo dependencies |
29 | | - # Note: this repos should match with the repos set in ct.yaml |
30 | | - # See https://github.com/Flagsmith/flagsmith-charts/issues/105 |
| 24 | + - name: Build chart |
31 | 25 | run: | |
32 | | - helm repo add stable https://charts.helm.sh/stable |
33 | | - helm repo add influxdb2 https://helm.influxdata.com/ |
34 | | - helm repo add kiwigrid https://kiwigrid.github.io |
35 | | - helm repo add bitnami https://charts.bitnami.com/bitnami |
| 26 | + mkdir -p .cr-release-packages |
| 27 | + helm dependency update charts/flagsmith |
| 28 | + helm package charts/flagsmith --destination .cr-release-packages |
36 | 29 |
|
37 | | - - name: Set up chart-testing |
38 | | - |
| 30 | + - name: Upload chart to GitHub Release |
| 31 | + uses: softprops/action-gh-release@v1 |
39 | 32 | with: |
40 | | - version: v3.3.0 |
41 | | - |
42 | | - - name: Run chart-testing (lint) |
43 | | - run: ct lint --config ct.yaml --lint-conf lintconf.yaml |
| 33 | + files: .cr-release-packages/*.tgz |
| 34 | + env: |
| 35 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
44 | 36 |
|
45 | | - - name: Run chart-releaser |
46 | | - id: chart-releaser |
| 37 | + - name: Update GitHub Pages index |
47 | 38 | uses: helm/chart-releaser-action@v1 |
48 | 39 | with: |
49 | | - # Since release please will create the release, we are just using chart-releaser |
50 | | - # to upload the charts. By default, it will skip upload if it finds an existing |
51 | | - # release / tag. |
| 40 | + charts_dir: charts |
52 | 41 | skip_existing: false |
53 | 42 | env: |
54 | | - CR_TOKEN: '${{ secrets.GITHUB_TOKEN }}' |
| 43 | + CR_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments