2021-04-17 13:22:35 +12:00
|
|
|
# This is a basic workflow that is manually triggered
|
|
|
|
|
|
|
|
name: Build App
|
|
|
|
|
|
|
|
# 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:59:05 +12:00
|
|
|
environment: production
|
2021-04-17 13:22:35 +12:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-05-19 23:38:32 +12:00
|
|
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
2021-04-17 13:22:35 +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
|
|
|
|
|
|
|
|
- name: npm install and build
|
|
|
|
run: |
|
|
|
|
npm install
|
|
|
|
npm run build
|
|
|
|
|
|
|
|
- name: Upload Linux Artifact
|
2021-05-19 23:38:32 +12:00
|
|
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
2021-04-17 13:22:35 +12:00
|
|
|
uses: actions/upload-artifact@v2.2.3
|
|
|
|
with:
|
|
|
|
# Artifact name
|
|
|
|
name: Linux_FA ${{ github.event.inputs.version }}
|
2021-05-22 02:07:11 +12:00
|
|
|
path: |
|
|
|
|
dist/electron/Packaged/*.snap
|
|
|
|
dist/electron/Packaged/*.AppImage
|
2021-04-17 13:22:35 +12:00
|
|
|
|
|
|
|
- name: Upload MacOS Artifact
|
2021-04-17 13:40:43 +12:00
|
|
|
if: ${{ matrix.os == 'macOS-latest' }}
|
2021-04-17 13:22:35 +12:00
|
|
|
uses: actions/upload-artifact@v2.2.3
|
|
|
|
with:
|
|
|
|
# Artifact name
|
2021-04-17 13:39:17 +12:00
|
|
|
name: Mac_FA ${{ github.event.inputs.version }}
|
2021-05-22 02:07:11 +12:00
|
|
|
path: dist/electron/Packaged/*.dmg
|
2021-04-17 13:22:35 +12:00
|
|
|
|
|
|
|
- name: Upload Windows Artifact
|
2021-04-17 13:40:43 +12:00
|
|
|
if: ${{ matrix.os == 'windows-latest' }}
|
2021-04-17 13:22:35 +12:00
|
|
|
uses: actions/upload-artifact@v2.2.3
|
|
|
|
with:
|
|
|
|
# Artifact name
|
2021-04-17 13:39:17 +12:00
|
|
|
name: Windows_FA ${{ github.event.inputs.version }}
|
2021-05-22 02:07:11 +12:00
|
|
|
path: dist/electron/Packaged/*.exe
|
2021-04-17 13:22:35 +12:00
|
|
|
|