-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (41 loc) · 1.36 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
name: release
on:
workflow_dispatch:
inputs:
version:
type: string
default: "0.1.0-alpha.1"
required: true
description: 'Robot Operator Version'
isPrerelease:
type: boolean
default: true
required: true
description: 'Is this a prerelease of Robot Operator?'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: List Tags
run: git tag
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Make Release
run: hack/release.sh ${{ github.event.inputs.version }}
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "build(manifests): update manifests and chart for v${{ github.event.inputs.version }}"
tagging_message: v${{ github.event.inputs.version }}
- uses: ncipollo/release-action@v1
with:
tag: v${{ github.event.inputs.version }}
name: v${{ github.event.inputs.version }}
prerelease: "${{ github.event.inputs.isPrerelease }}"
body: |
Robot Operator - v${{ github.event.inputs.version }}