-
Notifications
You must be signed in to change notification settings - Fork 198
57 lines (46 loc) · 1.55 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
51
52
53
54
55
56
57
name: Release
on:
push:
tags:
- 'v?[0-9]+.[0-9]+.[0-9]+'
- "v?[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+"
#- "v?[0-9]+.[0-9]+.[0-9]+-dev.[0-9]+" Disabled for now for dev tags
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Concatenate CRDs
run: |
find config/base/crds/ -name '*.yaml' -maxdepth 1 -exec cat {} + >> kafka-operator.crds.yaml
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Koperator ${{ github.ref }}
body: |
This release fixes several bug and introduce a couple of new features:
## New features:
- TODO
## Bug Fixes:
- TODO
## Upgrade Notes:
- TODO
[v#TODO...${{ github.ref }}](https://github.com/banzaicloud/koperator/compare/v#TODO...${{ github.ref }})
Thanks for the huge help from the community 🍺
prerelease: false
draft: true
- name: Upload CRDs
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./kafka-operator.crds.yaml
asset_name: kafka-operator.crds.yaml
asset_content_type: text/plain