Add deploy step

This commit is contained in:
Matthias 2020-12-06 10:26:02 +01:00
parent 93fd1ba216
commit 4cea1cc3f2

View File

@ -7,6 +7,9 @@ on:
pull_request:
branches:
- master
release:
types: [ created ]
# types: [published]
jobs:
build:
@ -34,8 +37,26 @@ jobs:
- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: FreqUI-dist
name: FreqUI
path: |
dist
!dist/**/*.map
retention-days: 10
deploy:
needs: [ build ]
runs-on: ubuntu-20.04
if: github.event_name == 'release'
steps:
- uses: actions/download-artifact@v2
with:
name: FreqUI
path: ./
- name: Upload release binaries
uses: alexellis/upload-assets@0.2.2
env:
GITHUB_TOKEN: ${{ github.token }}
with:
asset_paths: '["FreqUI.zip"]'