mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
fix
This commit is contained in:
17
.github/workflows/build-app.yaml
vendored
17
.github/workflows/build-app.yaml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user