fantasia-archive/.github/workflows/build.yml

63 lines
1.6 KiB
YAML
Raw Normal View History

2022-05-28 23:54:20 +12:00
# This is a basic workflow that is manually triggered
2023-08-27 09:04:14 +12:00
name: Build App - FA Rewrite
2022-05-28 23:54:20 +12:00
# Manually triggered
on:
workflow_dispatch:
inputs:
version:
description: 'The version of the application being built'
required: true
jobs:
# Builds all major OS versions of FA
build:
runs-on: ${{ matrix.os }}
2022-05-29 04:58:16 +12:00
environment: production
2022-05-28 23:54:20 +12:00
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
2023-08-27 09:01:46 +12:00
node: [16]
2022-05-28 23:54:20 +12:00
steps:
- name: Check out the code
uses: actions/checkout@v2.3.4
- name: Setup Node.js environment
uses: actions/setup-node@v2.1.5
2023-08-27 09:01:46 +12:00
- name: quasar install and build
2022-05-28 23:54:20 +12:00
run: |
2023-08-27 09:12:12 +12:00
npm install --global yarn@1.22.19
2023-08-27 09:01:46 +12:00
yarn global add @quasar/cli
2023-08-27 09:12:12 +12:00
yarn install
2023-08-27 09:01:46 +12:00
yarn build
2022-05-28 23:54:20 +12:00
- name: Upload Linux Artifact
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: actions/upload-artifact@v2.2.3
with:
# Artifact name
name: Linux_FA ${{ github.event.inputs.version }}
path: |
dist/electron/Packaged/*.snap
dist/electron/Packaged/*.AppImage
2023-08-27 09:01:46 +12:00
2022-05-28 23:54:20 +12:00
- name: Upload MacOS Artifact
if: ${{ matrix.os == 'macOS-latest' }}
uses: actions/upload-artifact@v2.2.3
with:
# Artifact name
name: Mac_FA ${{ github.event.inputs.version }}
path: dist/electron/Packaged/*.dmg
2023-08-27 09:01:46 +12:00
2022-05-28 23:54:20 +12:00
- name: Upload Windows Artifact
if: ${{ matrix.os == 'windows-latest' }}
uses: actions/upload-artifact@v2.2.3
with:
# Artifact name
name: Windows_FA ${{ github.event.inputs.version }}
path: dist/electron/Packaged/*.exe