-
Notifications
You must be signed in to change notification settings - Fork 92
48 lines (46 loc) · 1.32 KB
/
release-helm.yml
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
name: Helm Package and Publish
on:
release:
types: [created]
env:
GH_TOKEN: ${{ secrets.APK_BOT_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout apk-repo
uses: actions/checkout@v3
with:
fetch-depth: "0"
path: apk-repo
token: ${{ secrets.APK_BOT_TOKEN }}
- name: Set release username and email
shell: sh
run: |
git config --global user.name ${{ secrets.APK_BOT_USER }}
git config --global user.email ${{ secrets.APK_BOT_EMAIL }}
- name: Setup Helm
uses: HelmRepo/helm-setup@v1
- name: Package Chart
run: |
cd apk-repo/helm-charts
helm package .
mv *.tgz ${{github.workspace}}/chart.tgz
- name: Create Release
id: create_release
uses: actions/create-release@v1
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Release of version ${{ github.ref }}.
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{github.workspace}}/chart.tgz
asset_name: chart.tgz
asset_content_type: application/x-gzip