publish to snapcraft.io

This commit is contained in:
Jan Prochazka
2021-01-19 20:43:15 +01:00
parent ffbcbc6d06
commit e1ad90da49
3 changed files with 22 additions and 8 deletions

View File

@@ -38,6 +38,9 @@ jobs:
- name: fillNativeModulesElectron
run: |
yarn fillNativeModulesElectron
- name: Install Snapcraft
if: matrix.os == 'ubuntu-18.04'
uses: samuelmeuli/action-snapcraft@v1
- name: Publish
run: |
yarn run build:app
@@ -50,6 +53,13 @@ jobs:
run: |
yarn generatePadFile
- name: publishSnap
if: matrix.os == 'ubuntu-18.04'
run: |
echo ${{ secrets.WINCERT_CERTIFICATE }} > snapcraft.login
snapcraft login --with snapcraft.login
snapcraft upload --release=beta dist/*.snap
- name: Copy artifacts
run: |
mkdir artifacts
@@ -63,6 +73,7 @@ jobs:
mv app/dist/*.AppImage artifacts/ || true
mv app/dist/*.deb artifacts/ || true
mv app/dist/*.dmg artifacts/ || true
mv app/dist/*.snap artifacts/dbgate-latest.snap || true
# - name: Copy artifacts Linux, MacOs
# if: matrix.os != 'windows-2016'