-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.26 KB
/
release.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
on:
workflow_dispatch:
inputs:
version:
description: "Version of the release"
required: true
name: Release
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Fetch history
run: git fetch --prune --unshallow
- name: Create local repository directory
id: local_repo
run: echo ::set-output name=dir::"$(mktemp -d repo.XXXXXXXX)"
- name: Package Chart
run: helm package charts/test && mv *.tgz ${{ steps.local_repo.outputs.dir }}/
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file_glob: true
file: ${{ steps.local_repo.outputs.dir }}/*
tag: ${{ github.event.inputs.version }}
overwrite: true
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Release to GitHub
run: |
git checkout gh-pages
echo "test ${{ github.event.inputs.version }}" >> index.html
git add index.html
git commit --message "Update index"
git push