Skip to content

Commit

Permalink
ci: add beta release type
Browse files Browse the repository at this point in the history
  • Loading branch information
HayesGordon committed Oct 13, 2024
1 parent 09e6081 commit 175f9ef
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/release_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
description: "Minor"
type: boolean
default: false
beta:
description: "Beta"
type: boolean
default: false

jobs:
build:
Expand Down Expand Up @@ -48,21 +52,21 @@ jobs:

- name: Major Release
if: ${{ inputs.major == true }}
run: npm run release -- major --ci --github.assets=rive_code_generator_macosx
run: npm run release -- major --ci --github.assets=rive_code_generator_macosx ${{ inputs.beta && '--preRelease=beta' || '' }}
working-directory: ./.github/scripts/release
env:
GITHUB_TOKEN: ${{ secrets.RIVE_REPO_PAT }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Minor Release
if: ${{ inputs.major == false && inputs.minor == true }}
run: npm run release -- minor --ci --github.assets=rive_code_generator_macosx
run: npm run release -- minor --ci --github.assets=rive_code_generator_macosx ${{ inputs.beta && '--preRelease=beta' || '' }}
working-directory: ./.github/scripts/release
env:
GITHUB_TOKEN: ${{ secrets.RIVE_REPO_PAT }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Patch Release
if: ${{ inputs.major == false && inputs.minor == false }}
run: npm run release -- --ci --github.assets=rive_code_generator_macosx
run: npm run release -- --ci --github.assets=rive_code_generator_macosx ${{ inputs.beta && '--preRelease=beta' || '' }}
working-directory: ./.github/scripts/release
env:
GITHUB_TOKEN: ${{ secrets.RIVE_REPO_PAT }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 175f9ef

Please sign in to comment.