-
Notifications
You must be signed in to change notification settings - Fork 2
82 lines (70 loc) · 2.34 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: MANUAL - Release
on:
workflow_dispatch:
inputs:
env:
description: "An Environment"
required: true
type: choice
options:
- development
- production
version:
description: "A Version"
required: true
type: string
env:
app_name: ${{ inputs.env == 'production' && 'MoonshineSDKInstaller' || 'MoonshineSDKInstallerDevelopment' }}
tag: v${{ inputs.version }}${{ inputs.env == 'production' && ' ' || '-Dev' }}
jobs:
build-windows:
name: Build on Windows
uses: moonshine-ide/moonshine-sdk-installer/.github/workflows/build-windows.yml@master
secrets: inherit
with:
env: ${{ inputs.env }}
version: ${{ inputs.version }}
build-macos:
name: Build on MacOS
uses: moonshine-ide/moonshine-sdk-installer/.github/workflows/build-macos.yml@master
secrets: inherit
with:
env: ${{ inputs.env }}
version: ${{ inputs.version }}
release:
name: Draft Development Release
needs: [build-windows, build-macos]
runs-on: ubuntu-latest
steps:
- name: Print info
run: |
echo "Ref: ${{ github.ref_name }}"
echo "Env: ${{ inputs.env }}"
echo "Version: ${{ inputs.version }}"
echo "Tag: ${{ env.tag }}"
- name: Checkout repo
uses: actions/checkout@v4
- name: Download windows installer
uses: actions/download-artifact@v4
with:
name: msdki-windows-setup
- name: Download macos installer
uses: actions/download-artifact@v4
with:
name: msdki-macos-setup
- name: Debug artifacts
run: ls .
- name: Create release
uses: softprops/action-gh-release@v2
with:
name: Moonshine SDK Installer ${{ inputs.version }} ${{ inputs.env == 'production' && ' ' || 'Development' }}
tag_name: ${{ env.tag }}
target_commitish: ${{ github.sha }}
body: |
This is a ${{ inputs.env }} release of MSDKI.
draft: true
prerelease: ${{ inputs.env == 'development' }}
files: |
${{ env.app_name }}-${{ inputs.version }}.exe
${{ env.app_name }}-${{ inputs.version }}.pkg
fail_on_unmatched_files: true