Skip to content

Commit

Permalink
chore(actions): add gh action for releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
tunahanertekin authored Feb 12, 2024
2 parents 98456b7 + 7f0501c commit e3d04fb
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: release

on:
workflow_dispatch:
inputs:
version:
type: string
default: "v0.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 ${{ github.ref_name }}"
tagging_message: ${{ github.event.inputs.version }}
- uses: ncipollo/release-action@v1
with:
tag: ${{ github.event.inputs.version }}
name: ${{ github.event.inputs.version }}
prerelease: "${{ github.event.inputs.isPrerelease }}"
body: |
Robot Operator - ${{ github.event.inputs.version }}

0 comments on commit e3d04fb

Please sign in to comment.