Create Release #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@692973e3d937129bcbf40652eb9f2f61becf3332 # 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 }} |