This commit is contained in:
Jan Prochazka
2020-03-15 20:42:29 +01:00
parent 690bf6c84e
commit 73f3d2d62a

View File

@@ -1,5 +1,3 @@
name: Electron app
on:
@@ -35,18 +33,27 @@ jobs:
- name: Publish
run: |
yarn run build:app
- name: Cleanup artifacts
if: matrix.os != 'windows-2016'
run: |
npx rimraf "app/dist/!(*.exe|*.deb|*.AppImage|*.dmg)"
mkdir artifacts
mv "app/dist/(*.exe,*.deb,*.AppImage,*.dmg)" artifacts || true
- name: Cleanup artifacts Win
if: matrix.os == 'windows-2016'
run: |
mkdir artifacts
mv app/dist/*.exe artifacts
- name: Upload artifacts
uses: actions/upload-artifact@v1
with:
name: ${{ matrix.os }}
path: app/dist
path: artifacts
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: "app/dist/**"
files: "artifacts/**"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}