mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-27 00:56:01 +00:00
fix
This commit is contained in:
43
.github/workflows/build-app.yaml
vendored
43
.github/workflows/build-app.yaml
vendored
@@ -3,14 +3,13 @@ name: Electron app
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
|
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
|
||||||
|
|
||||||
# branches:
|
# branches:
|
||||||
# - production
|
# - production
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
@@ -46,15 +45,16 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
mkdir artifacts
|
mkdir artifacts
|
||||||
|
|
||||||
|
cp app/dist/*.deb artifacts/dbgate-latest.deb || true
|
||||||
|
cp app/dist/*.AppImage artifacts/dbgate-latest.AppImage || true
|
||||||
|
cp app/dist/*.exe artifacts/dbgate-latest.exe || true
|
||||||
|
cp app/dist/*.dmg artifacts/dbgate-latest.dmg || true
|
||||||
|
|
||||||
mv app/dist/*.exe artifacts/ || true
|
mv app/dist/*.exe artifacts/ || true
|
||||||
mv app/dist/*.AppImage artifacts/ || true
|
mv app/dist/*.AppImage artifacts/ || true
|
||||||
mv app/dist/*.deb artifacts/ || true
|
mv app/dist/*.deb artifacts/ || true
|
||||||
mv app/dist/*.dmg artifacts/ || true
|
mv app/dist/*.dmg artifacts/ || true
|
||||||
|
|
||||||
mv app/dist/latest.yml artifacts/latest.yml || true
|
|
||||||
mv app/dist/latest-linux.yml artifacts/latest-linux.yml || true
|
|
||||||
mv app/dist/latest-mac.yml artifacts/latest-mac.yml || true
|
|
||||||
|
|
||||||
# - name: Copy artifacts Linux, MacOs
|
# - name: Copy artifacts Linux, MacOs
|
||||||
# if: matrix.os != 'windows-2016'
|
# if: matrix.os != 'windows-2016'
|
||||||
# run: |
|
# run: |
|
||||||
@@ -67,28 +67,33 @@ jobs:
|
|||||||
# mv app/dist/*.deb artifacts/dbgate-linux.deb || true
|
# mv app/dist/*.deb artifacts/dbgate-linux.deb || true
|
||||||
# mv app/dist/*.AppImage artifacts/dbgate-linux.AppImage || true
|
# mv app/dist/*.AppImage artifacts/dbgate-linux.AppImage || true
|
||||||
# mv app/dist/*.dmg artifacts/dbgate-mac.dmg || true
|
# mv app/dist/*.dmg artifacts/dbgate-mac.dmg || true
|
||||||
|
|
||||||
# - name: Copy artifacts Win
|
# - name: Copy artifacts Win
|
||||||
# if: matrix.os == 'windows-2016'
|
# if: matrix.os == 'windows-2016'
|
||||||
# run: |
|
# run: |
|
||||||
# mkdir artifacts
|
# mkdir artifacts
|
||||||
|
|
||||||
# cp app/dist/*.exe artifacts/ || true
|
# cp app/dist/*.exe artifacts/ || true
|
||||||
|
|
||||||
# mv app/dist/*.exe artifacts/dbgate-windows.exe
|
# mv app/dist/*.exe artifacts/dbgate-windows.exe
|
||||||
|
|
||||||
# mv app/dist/latest.yml artifacts/latest.yml || true
|
# mv app/dist/latest.yml artifacts/latest.yml || true
|
||||||
|
|
||||||
# - name: Copy latest-linux.yml
|
- name: Copy latest.yml (windows)
|
||||||
# if: matrix.os == 'ubuntu-18.04'
|
if: matrix.os == 'windows-2016'
|
||||||
# run: |
|
run: |
|
||||||
# mv app/dist/latest-linux.yml artifacts/latest-linux.yml || true
|
mv app/dist/latest.yml artifacts/latest.yml || true
|
||||||
|
|
||||||
|
- name: Copy latest-linux.yml
|
||||||
|
if: matrix.os == 'ubuntu-18.04'
|
||||||
|
run: |
|
||||||
|
mv app/dist/latest-linux.yml artifacts/latest-linux.yml || true
|
||||||
|
|
||||||
|
- name: Copy latest-mac.yml
|
||||||
|
if: matrix.os == 'macOS-10.14'
|
||||||
|
run: |
|
||||||
|
mv app/dist/latest-mac.yml artifacts/latest-mac.yml || true
|
||||||
|
|
||||||
# - name: Copy latest-mac.yml
|
|
||||||
# if: matrix.os == 'macOS-10.14'
|
|
||||||
# run: |
|
|
||||||
# mv app/dist/latest-mac.yml artifacts/latest-mac.yml || true
|
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
@@ -99,7 +104,7 @@ jobs:
|
|||||||
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: "artifacts/**"
|
files: 'artifacts/**'
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
@@ -112,4 +117,4 @@ jobs:
|
|||||||
# tag_name: ${{ github.ref }}
|
# tag_name: ${{ github.ref }}
|
||||||
# release_name: Release ${{ github.ref }}
|
# release_name: Release ${{ github.ref }}
|
||||||
# draft: false
|
# draft: false
|
||||||
# prerelease: false
|
# prerelease: false
|
||||||
|
|||||||
Reference in New Issue
Block a user