Skip to content

Commit 4fccec3

Browse files
authored
Merge branch 'main' into issue-219_remove-charts
2 parents 9dafe03 + 6177761 commit 4fccec3

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/release-please.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ env:
1010
DEFAULT_GO_VERSION: 1.18
1111
REGISTRY: ghcr.io
1212
IMAGE_NAME: ${{ github.repository }}
13+
GITHUB_PAGES_BRANCH: gh-pages
1314

1415
permissions:
1516
contents: read
@@ -132,3 +133,44 @@ jobs:
132133
config/rendered/release.yaml
133134
config/samples/end-to-end.yaml
134135
open-feature-operator-sbom.spdx.json
136+
137+
release-charts:
138+
needs: release-please
139+
permissions:
140+
contents: write
141+
runs-on: ubuntu-latest
142+
if: ${{ needs.release-please.outputs.release_created }}
143+
steps:
144+
- name: Checkout
145+
uses: actions/checkout@v3
146+
with:
147+
fetch-depth: 0
148+
ref: ${{ env.GITHUB_PAGES_BRANCH }}
149+
150+
- name: Setup go
151+
uses: actions/setup-go@v3
152+
with:
153+
go-version: ${{ env.DEFAULT_GO_VERSION }}
154+
155+
- name: Configure Git
156+
run: |
157+
git config user.name "$GITHUB_ACTOR"
158+
git config user.email "[email protected]"
159+
160+
- name: Merge release to gh-pages
161+
run: git merge ${{ needs.release-please.outputs.release_tag_name }}
162+
163+
- name: Generate helm charts
164+
run: make helm-package
165+
166+
- name: Commit files
167+
run: |
168+
git add charts/
169+
git add index.yaml
170+
git commit -s -m "chore: released charts ${{ needs.release-please.outputs.release_tag_name }}"
171+
172+
- name: Push changes
173+
uses: ad-m/github-push-action@master
174+
with:
175+
github_token: ${{ secrets.GITHUB_TOKEN }}
176+
branch: ${{ env.GITHUB_PAGES_BRANCH }}

0 commit comments

Comments
 (0)