-
Notifications
You must be signed in to change notification settings - Fork 7
45 lines (38 loc) · 1.09 KB
/
build_frontpage.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Build Frontpage
on:
workflow_dispatch:
workflow_run:
workflows: [Release Charts]
types:
- completed
jobs:
on-success:
runs-on: ubuntu-latest
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: 'gh-pages'
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
persist-credentials: true
- name: Set up Helm
uses: azure/setup-helm@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install Helm Plugin helm-repo-htlm
run: |
helm plugin install https://github.com/halkeye/helm-repo-html
- name: Create Frontpage
run: |
helm repo-html -t tpl/index.tpl
- name: Commit files
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "Add changes" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
ssh: true
branch: 'gh-pages'