mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-28 14:06:00 +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
|
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 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user