-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (57 loc) · 1.96 KB
/
pr-release.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Publish PR Helm Charts
on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- '**.md'
- 'LICENSE'
- 'NOTICE'
pull_request:
paths-ignore:
- '**.md'
- 'LICENSE'
- 'NOTICE'
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
pages: write
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Fetch history
run: git fetch --prune --unshallow
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Extract branch name
shell: bash
run: |
echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
echo "commit=$(echo ${{ github.sha }} | cut -c -7 )" >> $GITHUB_OUTPUT
id: extract_branch
- name: Debug step
run: |
echo "Branch: ${{ steps.extract_branch.outputs.branch }}"
echo "Commit: ${{ steps.extract_branch.outputs.commit }}"
echo "Sha: ${{ github.sha }}"
echo "Latest Chart version: 0.0.0-${{ steps.extract_branch.outputs.branch }}"
echo "Specific Chart version: 0.0.0-${{ steps.extract_branch.outputs.branch }}-${{ steps.extract_branch.outputs.commit }}"
- name: Publish Helm charts for specific commit
uses: stefanprodan/helm-gh-pages@master
with:
charts_url: https://executor-helm.acryl.io
target_dir: pr
chart_version: 0.0.0-${{ steps.extract_branch.outputs.branch }}-${{ steps.extract_branch.outputs.commit }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish Latest PR Helm charts
uses: stefanprodan/helm-gh-pages@master
with:
charts_url: https://executor-helm.acryl.io
target_dir: pr
chart_version: 0.0.0-${{ steps.extract_branch.outputs.branch }}
token: ${{ secrets.GITHUB_TOKEN }}