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

View File

@@ -10,7 +10,6 @@ on:
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 }}