forked from xuan25/node_airtunes2
-
Notifications
You must be signed in to change notification settings - Fork 5
47 lines (35 loc) · 984 Bytes
/
build.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
name: Build
on: push
permissions:
contents: write
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "yarn"
- name: Add DiskUtils (macOS)
if: ${{ matrix.os == 'macos-latest' }}
run: sudo -H pip install setuptools
- name: Install Dependencies
run: yarn install
# npm config set msvs_version 2022
- name: Build tar files
run: yarn build
- name: Build Exe (Windows)
if: ${{ matrix.os == 'windows-latest' }}
run: yarn exe
- name: Upload release assets
uses: softprops/action-gh-release@v1
with:
tag_name: "v2.4.9"
files: |
prebuilds/*.tar.gz
./airtunes2.exe