This commit is contained in:
Jan Prochazka
2021-01-07 10:59:11 +01:00
parent cdfc40b73f
commit 5a9f40111c

View File

@@ -3,14 +3,13 @@ name: Electron app
on:
push:
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:
# - production
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
@@ -46,15 +45,16 @@ jobs:
run: |
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/*.AppImage artifacts/ || true
mv app/dist/*.deb 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
# if: matrix.os != 'windows-2016'
# run: |
@@ -67,28 +67,33 @@ jobs:
# mv app/dist/*.deb artifacts/dbgate-linux.deb || true
# mv app/dist/*.AppImage artifacts/dbgate-linux.AppImage || true
# mv app/dist/*.dmg artifacts/dbgate-mac.dmg || true
# - name: Copy artifacts Win
# if: matrix.os == 'windows-2016'
# run: |
# 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/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.yml (windows)
if: matrix.os == 'windows-2016'
run: |
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
uses: actions/upload-artifact@v1
with:
@@ -99,7 +104,7 @@ jobs:
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: "artifacts/**"
files: 'artifacts/**'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -112,4 +117,4 @@ jobs:
# tag_name: ${{ github.ref }}
# release_name: Release ${{ github.ref }}
# draft: false
# prerelease: false
# prerelease: false