Skip to content

Commit 1d29352

Browse files
committed
Revert version changes and add temporary changes for testing
1 parent 14b5d67 commit 1d29352

File tree

1 file changed

+31
-29
lines changed

1 file changed

+31
-29
lines changed

.github/workflows/release.yaml

Lines changed: 31 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ name: Release Charts
22

33
on:
44
push:
5+
branches:
6+
- chore(ci)/revert-version-changes-in-release-pipeline
57
tags:
68
- flagsmith-*.*.*
79

8-
env:
9-
HELM_VERSION: v3.12.3
10-
1110
jobs:
1211
release:
1312
runs-on: ubuntu-latest
@@ -19,9 +18,11 @@ jobs:
1918
fetch-depth: 0
2019

2120
- name: Install Helm
22-
uses: azure/setup-helm@v3
21+
# TODO: bump this to v3
22+
uses: azure/setup-helm@v1
2323
with:
24-
version: ${{ env.HELM_VERSION }}
24+
# TODO: standardise the version of Helm used across this workflow
25+
version: v3.5.4
2526

2627
- name: Add chart repo dependencies
2728
# Note: this repos should match with the repos set in ct.yaml
@@ -33,9 +34,10 @@ jobs:
3334
helm repo add bitnami https://charts.bitnami.com/bitnami
3435
3536
- name: Set up chart-testing
36-
uses: helm/chart-testing-action@v2
37+
# TODO: relax this to just v2
38+
uses: helm/chart-testing-action@v2.0.1
3739
with:
38-
version: ${{ env.HELM_VERSION }}
40+
version: v3.3.0
3941

4042
- name: Run chart-testing (lint)
4143
run: ct lint --config ct.yaml --lint-conf lintconf.yaml
@@ -51,26 +53,26 @@ jobs:
5153
helm dependency update charts/flagsmith
5254
helm package charts/flagsmith --destination .cr-release-packages
5355
54-
- name: Upload chart to GitHub Release
55-
uses: softprops/action-gh-release@v1
56-
with:
57-
files: .cr-release-packages/*.tgz
58-
env:
59-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
# - name: Upload chart to GitHub Release
57+
# uses: softprops/action-gh-release@v1
58+
# with:
59+
# files: .cr-release-packages/*.tgz
60+
# env:
61+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6062

61-
- name: Update GitHub Pages index
62-
run: |
63-
git fetch origin gh-pages
64-
git worktree add gh-pages origin/gh-pages
65-
cp .cr-release-packages/*.tgz gh-pages/
66-
helm repo index gh-pages \
67-
--merge gh-pages/index.yaml \
68-
--url "https://github.com/Flagsmith/flagsmith-charts/releases/download/$GITHUB_REF_NAME"
69-
cd gh-pages
70-
git config user.name "flagsmithdev"
71-
git config user.email "engineering@flagsmith.com"
72-
git add index.yaml
73-
git commit -m "Add Helm chart for $GITHUB_REF_NAME"
74-
git push origin HEAD:gh-pages
75-
env:
76-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63+
# - name: Update GitHub Pages index
64+
# run: |
65+
# git fetch origin gh-pages
66+
# git worktree add gh-pages origin/gh-pages
67+
# cp .cr-release-packages/*.tgz gh-pages/
68+
# helm repo index gh-pages \
69+
# --merge gh-pages/index.yaml \
70+
# --url "https://github.com/Flagsmith/flagsmith-charts/releases/download/$GITHUB_REF_NAME"
71+
# cd gh-pages
72+
# git config user.name "flagsmithdev"
73+
# git config user.email "engineering@flagsmith.com"
74+
# git add index.yaml
75+
# git commit -m "Add Helm chart for $GITHUB_REF_NAME"
76+
# git push origin HEAD:gh-pages
77+
# env:
78+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)