From 175f9efda0357a77e6f0ed06e3aa193a3e5cb2cd Mon Sep 17 00:00:00 2001 From: CI Date: Sun, 13 Oct 2024 14:41:04 +0200 Subject: [PATCH] ci: add beta release type --- .github/workflows/release_workflow.yaml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release_workflow.yaml b/.github/workflows/release_workflow.yaml index 922f34e..2dcb1d3 100644 --- a/.github/workflows/release_workflow.yaml +++ b/.github/workflows/release_workflow.yaml @@ -11,6 +11,10 @@ on: description: "Minor" type: boolean default: false + beta: + description: "Beta" + type: boolean + default: false jobs: build: @@ -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 }}