-
Notifications
You must be signed in to change notification settings - Fork 31
46 lines (44 loc) · 1.38 KB
/
publish-helm.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
name: Helm Package
on:
release:
types: [published]
jobs:
package:
runs-on: ubuntu-latest
strategy:
matrix:
release:
- 'quantum-serverless'
- 'qs-observability'
steps:
- name: Set up Helm
uses: azure/setup-helm@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v3
- name: Build Helm Package
id: package
run: |
helm package ./charts/${{ matrix.release }} -u
echo "VERSION=${GITHUB_REF_NAME/v}" >> $GITHUB_OUTPUT
- name: Upload Helm Package
uses: actions/upload-artifact@v3
with:
name: helm-package
path: ./${{ matrix.release }}-${{ steps.package.outputs.VERSION }}.tgz
- name: Get release
id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./${{ matrix.release }}-${{ steps.package.outputs.VERSION }}.tgz
asset_name: ${{ matrix.release }}-${{ steps.package.outputs.VERSION }}.tgz
asset_content_type: application/zip