-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (41 loc) · 971 Bytes
/
actions.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
name: 'Build Razor'
on:
release:
types: [published]
jobs:
build:
name: 'Build Razor'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['windows-latest']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: 3.11.3
# Windows Build
- name: 'Build'
if: matrix.os == 'windows-latest'
run: |
cd scripts &&
./build.bat
- name: 'Upload Build'
if: matrix.os == 'windows-latest'
uses: softprops/[email protected]
with:
files: dist/Razor.exe
# MacOS Build
- name: 'Build'
if: matrix.os == 'macos-latest'
run: |
cd scripts &&
./build.sh &&
cd ../dist &&
zip -yr mac.zip Razor.app/
- name: 'Upload Build'
if: matrix.os == 'macos-latest'
uses: softprops/[email protected]
with:
files: dist/mac.zip