Skip to content

Commit 5754897

Browse files
committed
chore(ci): remove OCI publish workflow (using gh-pages instead)
1 parent 6b71b05 commit 5754897

File tree

2 files changed

+42
-42
lines changed

2 files changed

+42
-42
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Publish Helm chart (gh-pages)
2+
3+
on:
4+
workflow_dispatch: {}
5+
6+
jobs:
7+
release:
8+
name: Package and publish charts to gh-pages
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
- name: Install Helm
15+
run: |
16+
set -eux
17+
HELM_VERSION=3.12.0
18+
curl -fsSL https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz -o helm.tar.gz
19+
tar -xzf helm.tar.gz
20+
sudo mv linux-amd64/helm /usr/local/bin/helm
21+
rm -rf linux-amd64 helm.tar.gz
22+
23+
- name: Package chart
24+
run: |
25+
rm -rf dist
26+
mkdir -p dist
27+
helm package . -d dist
28+
29+
- name: Compute charts repo URL
30+
run: |
31+
# Compute the GitHub Pages URL for this repository and export to the environment
32+
REPO_NAME=${GITHUB_REPOSITORY##*/}
33+
echo "CHARTS_REPO_URL=https://${GITHUB_REPOSITORY_OWNER}.github.io/${REPO_NAME}/" >> $GITHUB_ENV
34+
35+
- name: Publish charts to GitHub Pages (gh-pages)
36+
uses: helm/chart-releaser-action@v1
37+
with:
38+
charts_dir: dist
39+
release_branch: gh-pages
40+
charts_repo_url: ${{ github.event.inputs.charts_repo_url }}
41+
env:
42+
CR_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish-oci.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)