-
-
Notifications
You must be signed in to change notification settings - Fork 3
61 lines (59 loc) · 1.57 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
54
55
56
57
58
59
60
61
name: release build
on:
workflow_dispatch:
inputs:
version:
description: 'version number'
required: true
type: string
jobs:
draft_release:
runs-on: ubuntu-latest
steps:
- name: fetch latest changelog
id: fetch_changelog
uses: tyrrrz/action-http-request@master
with:
url: "https://dev.cables.gl/api/changelog?num=1&format=md"
- name: create release
id: create_release
uses: softprops/action-gh-release@v2
with:
name: "${{ inputs.version }}"
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: v${{ inputs.version }}
draft: true
prerelease: true
body: ${{ steps.fetch_changelog.outputs.body }}
linux:
uses: ./.github/workflows/build.yml
with:
runner: macos-14
target: linux
branch: ${{ github.ref_name }}
build_version: ${{ inputs.version }}
exe_name: cables-${{ inputs.version }}
tag_name: v${{ inputs.version }}
secrets: inherit
win:
uses: ./.github/workflows/build.yml
with:
runner: macos-14
target: win
branch: ${{ github.ref_name }}
build_version: ${{ inputs.version }}
exe_name: cables-${{ inputs.version }}
tag_name: v${{ inputs.version }}
secrets: inherit
mac:
uses: ./.github/workflows/build.yml
with:
runner: macos-14
target: mac
branch: ${{ github.ref_name }}
build_version: ${{ inputs.version }}
exe_name: cables-${{ inputs.version }}
tag_name: ${{ inputs.version }}
sign: true
notarize: true
secrets: inherit