-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (62 loc) · 2.07 KB
/
release_workflow.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Create Release
on:
workflow_dispatch:
inputs:
major:
description: "Major"
type: boolean
default: false
minor:
description: "Minor"
type: boolean
default: false
beta:
description: "Beta"
type: boolean
default: false
jobs:
build:
uses: ./.github/workflows/build_rive_code_generator.yaml
release:
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install dependencies
run: npm ci
working-directory: ./.github/scripts/release
- name: Configure Git
run: |
git config --local user.email 'hello@rive.app'
git config --local user.name ${{ github.actor }}
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: rive_code_generator_macosx
- name: Major Release
if: ${{ inputs.major == true }}
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.GITHUB_TOKEN }}
- name: Minor Release
if: ${{ inputs.major == false && inputs.minor == true }}
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.GITHUB_TOKEN }}
- name: Patch Release
if: ${{ inputs.major == false && inputs.minor == false }}
run: npm run release -- --ci --github.assets=rive_code_generator_macosx ${{ inputs.beta && '--preRelease=beta' || '' }}
working-directory: ./.github/scripts/release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}