mirror of
https://github.com/Elvanos/fantasia-archive.git
synced 2024-10-01 09:38:04 +13:00
Merge pull request #7 from joffutt4/master
Github Action to build different OS versions of FA
This commit is contained in:
commit
7495baa804
1 changed files with 58 additions and 0 deletions
58
.github/workflows/build.yml
vendored
Normal file
58
.github/workflows/build.yml
vendored
Normal file
|
@ -0,0 +1,58 @@
|
||||||
|
# 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 }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
||||||
|
|
||||||
|
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
|
||||||
|
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/
|
||||||
|
|
||||||
|
- 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/
|
||||||
|
|
||||||
|
- 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/
|
||||||
|
|
Loading…
Reference in a new issue