mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-27 03:16:00 +00:00
fix
This commit is contained in:
35
.github/workflows/build-app.yaml
vendored
35
.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: |
|
||||||
@@ -79,15 +79,20 @@ jobs:
|
|||||||
|
|
||||||
# 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-mac.yml
|
- name: Copy latest-linux.yml
|
||||||
# if: matrix.os == 'macOS-10.14'
|
if: matrix.os == 'ubuntu-18.04'
|
||||||
# run: |
|
run: |
|
||||||
# mv app/dist/latest-mac.yml artifacts/latest-mac.yml || true
|
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: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
@@ -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 }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user