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 name: Electron app
on: on:
@@ -35,18 +33,27 @@ jobs:
- name: Publish - name: Publish
run: | run: |
yarn run build:app yarn run build:app
- name: Cleanup artifacts - name: Cleanup artifacts
if: matrix.os != 'windows-2016'
run: | 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 - name: Upload artifacts
uses: actions/upload-artifact@v1 uses: actions/upload-artifact@v1
with: with:
name: ${{ matrix.os }} name: ${{ matrix.os }}
path: app/dist path: artifacts
- name: Release - name: Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
with: with:
files: "app/dist/**" files: "artifacts/**"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}