added github action workflow

This commit is contained in:
Shane Harris
2020-08-17 13:31:48 +01:00
committed by Your Name
parent afcc6e58f8
commit 232538cd8d
5 changed files with 33 additions and 6 deletions
+25
View File
@@ -0,0 +1,25 @@
name: "Main workflow"
on: [pull_request, push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: actions/setup-node@v1
- name: "Install dependencies"
run: yarn
- name: "Build application"
run: yarn dist
- name: "Archive build artifacts"
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/*
tag: ${{ github.run_id }}
overwrite: true
file_glob: true