-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (45 loc) · 1.34 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
42
43
44
45
46
47
48
49
50
name: Create new release
on:
push:
tags:
- v**
jobs:
build-docker-image:
name: Build release Docker image
uses: ./.github/workflows/docker.yml
secrets: inherit
build-helm-chart:
runs-on: ubuntu-latest
needs: [build-docker-image] # otherwise you might install a latest helm chart and get image pull error
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Write release version
id: version
run: |
VERSION=${GITHUB_REF_NAME#v}
echo Version: $VERSION
echo "VERSION=$VERSION" >> "$GITHUB_OUTPUT"
- name: Push helm chart
uses: appany/[email protected]
with:
name: restate-operator-helm
repository: restatedev
tag: ${{ steps.version.outputs.VERSION }}
registry: ghcr.io
registry_username: ${{ github.actor }}
registry_password: ${{ secrets.GITHUB_TOKEN }}
publish-release:
name: Publish release
runs-on: ubuntu-latest
needs: [build-docker-image, build-helm-chart]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Create release
uses: softprops/action-gh-release@v1
with:
# create a draft release which needs manual approval
draft: true
files: |
crd/crd.yaml