2024-05-22 02:07:34 +03:00
|
|
|
name: Release
|
2024-05-18 22:28:44 +03:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: main
|
|
|
|
|
|
|
|
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 }}
|
2024-06-23 01:11:32 +03:00
|
|
|
MAIN_VITE_API_URL: ${{ vars.MAIN_VITE_API_URL }}
|
2024-05-18 22:28:44 +03:00
|
|
|
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 }}
|
2024-06-23 01:11:32 +03:00
|
|
|
MAIN_VITE_API_URL: ${{ vars.MAIN_VITE_API_URL }}
|
2024-05-18 22:28:44 +03:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
- name: Release
|
|
|
|
uses: softprops/action-gh-release@v1
|
|
|
|
with:
|
|
|
|
draft: true
|
|
|
|
files: |
|
|
|
|
dist/*.exe
|
|
|
|
dist/*.zip
|
|
|
|
dist/*.dmg
|
|
|
|
dist/*.AppImage
|
|
|
|
dist/*.snap
|
|
|
|
dist/*.deb
|
|
|
|
dist/*.rpm
|
|
|
|
dist/*.tar.gz
|
|
|
|
dist/*.yml
|
|
|
|
dist/*.blockmap
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|