-
Notifications
You must be signed in to change notification settings - Fork 4
56 lines (47 loc) · 1.52 KB
/
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
48
49
50
51
52
53
54
55
56
name: build
on:
push:
branches:
- testing
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
env:
VITE_TWITCH_CLIENT_ID: ${{ secrets.VITE_TWITCH_CLIENT_ID }}
VITE_TWITCH_CLIENT_SECRET: ${{ secrets.VITE_TWITCH_CLIENT_SECRET }}
VITE_ITAD_API_KEY: ${{ secrets.VITE_ITAD_API_KEY }}
VITE_STEAMGRIDDB_API_KEY: ${{ secrets.VITE_STEAMGRIDDB_API_KEY }}
VITE_RD_CLIENT_ID: ${{ secrets.VITE_RD_CLIENT_ID }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: yarn
- name: Install dependencies
run: yarn install
- name: Build on Linux
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libarchive-tools fakeroot dpkg snapd flatpak flatpak-builder rpm
sudo ln -s /snap/bin/snapcraft /usr/local/bin/snapcraft
sudo snap install snapcraft --classic
yarn run prebuild && yarn run build:linux
- name: Build on Windows
if: matrix.os == 'windows-latest'
run: yarn run prebuild && yarn run build:win
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.os }}
path: |
release/**
dist/**
dist-electron/**