-
Notifications
You must be signed in to change notification settings - Fork 15
54 lines (45 loc) · 1.41 KB
/
release.yml
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
name: Build Release
on:
workflow_dispatch:
inputs:
package-name:
description: 'Name of the package to release'
required: true
type: choice
options:
- sh.orels.shaders
- sh.orels.shaders.generator
- sh.orels.shaders.inspector
jobs:
pack-version:
uses: ./.github/workflows/pack-package.yml
with:
package-name: ${{inputs.package-name}}
update-release:
needs: pack-version
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: get version
id: version
uses: notiz-dev/[email protected]
with:
path: "Packages/${{inputs.package-name}}/package.json"
prop_path: "version"
- name: Make Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/heads/main')
with:
tag_name: "${{inputs.package-name}}@v${{ steps.version.outputs.prop }}"
generate_release_notes: true
draft: true
- name: Make Pre-Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/heads/dev')
with:
tag_name: "${{inputs.package-name}}@v${{ steps.version.outputs.prop }}"
draft: true
prerelease: true
generate_release_notes: true