mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-01-23 21:44:55 +03:00
57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
name: Build
|
|
|
|
on: pull_request
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
os: [windows-latest, ubuntu-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- name: Check out Git repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20.11.1
|
|
|
|
- name: Install dependencies
|
|
run: yarn
|
|
|
|
- name: Build Linux
|
|
if: matrix.os == 'ubuntu-latest'
|
|
run: yarn build:linux
|
|
env:
|
|
MAIN_VITE_ONLINEFIX_USERNAME: ${{ secrets.ONLINEFIX_USERNAME }}
|
|
MAIN_VITE_ONLINEFIX_PASSWORD: ${{ secrets.ONLINEFIX_PASSWORD }}
|
|
MAIN_VITE_API_URL: ${{ vars.MAIN_VITE_API_URL }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Build Windows
|
|
if: matrix.os == 'windows-latest'
|
|
run: yarn build:win
|
|
env:
|
|
MAIN_VITE_ONLINEFIX_USERNAME: ${{ secrets.ONLINEFIX_USERNAME }}
|
|
MAIN_VITE_ONLINEFIX_PASSWORD: ${{ secrets.ONLINEFIX_PASSWORD }}
|
|
MAIN_VITE_API_URL: ${{ vars.MAIN_VITE_API_URL }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Create artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: Build-${{ matrix.os }}
|
|
path: |
|
|
dist/win-unpacked/**
|
|
dist/*-portable.exe
|
|
dist/*.zip
|
|
dist/*.dmg
|
|
dist/*.deb
|
|
dist/*.rpm
|
|
dist/*.tar.gz
|
|
dist/*.yml
|
|
dist/*.blockmap
|