hydra/.github/workflows/build.yml

57 lines
1.5 KiB
YAML
Raw Normal View History

2024-04-18 10:46:06 +03:00
name: Build
2024-06-20 03:24:43 +03:00
on: [pull_request, push]
2024-04-18 10:46:06 +03:00
jobs:
build:
strategy:
matrix:
2024-05-13 12:51:22 +03:00
os: [windows-latest, ubuntu-latest]
2024-04-18 10:46:06 +03:00
2024-04-29 13:01:34 +03:00
runs-on: ${{ matrix.os }}
2024-04-18 10:46:06 +03:00
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
2024-04-29 13:01:34 +03:00
- 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 }}
2024-06-20 03:23:22 +03:00
MAIN_VITE_API_URL: ${{ vars.MAIN_VITE_API_URL }}
2024-04-29 13:08:04 +03:00
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2024-04-29 13:01:34 +03:00
- name: Build Windows
if: matrix.os == 'windows-latest'
run: yarn build:win
2024-04-25 22:54:38 +03:00
env:
MAIN_VITE_ONLINEFIX_USERNAME: ${{ secrets.ONLINEFIX_USERNAME }}
MAIN_VITE_ONLINEFIX_PASSWORD: ${{ secrets.ONLINEFIX_PASSWORD }}
2024-06-20 03:23:22 +03:00
MAIN_VITE_API_URL: ${{ vars.MAIN_VITE_API_URL }}
2024-04-29 13:08:04 +03:00
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2024-04-25 22:54:38 +03:00
2024-04-29 13:01:34 +03:00
- name: Create artifact
uses: actions/upload-artifact@v4
with:
name: Build-${{ matrix.os }}
path: |
2024-05-19 00:26:02 +03:00
dist/win-unpacked/**
2024-06-07 20:29:34 +03:00
dist/*-portable.exe
2024-04-29 13:01:34 +03:00
dist/*.zip
dist/*.dmg
dist/*.deb
dist/*.rpm
dist/*.tar.gz
dist/*.yml
dist/*.blockmap