Skip to content

Create Release

Create Release #49

name: Create Release
on:
workflow_dispatch:
inputs:
release_tag:
required: true
type: string
reset_tag:
type: boolean
default: false
base_branch:
description: The branch being merged to.
type: string
default: main
jobs:
create_release:
runs-on: ubuntu-latest
env:
CC: clang
steps:
# Check out your code
- uses: actions/checkout@v4
# Generate a token that has permssions to create a release and create PRs.
- uses: tibdex/github-app-token@v2
id: generate_token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
# Configure the git user for the repository
- uses: cgrindel/gha_configure_git_user@v1
# Create the release
- uses: cgrindel/gha_create_release@v2
with:
release_tag: ${{ github.event.inputs.release_tag }}
reset_tag: ${{ github.event.inputs.reset_tag }}
base_branch: ${{ github.event.inputs.base_branch }}
github_token: ${{ steps.generate_token.outputs.token }}