mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 12:03:58 +00:00
dbgate beta - publish to snap
This commit is contained in:
17
.github/workflows/build-app-beta.yaml
vendored
17
.github/workflows/build-app-beta.yaml
vendored
@@ -35,6 +35,9 @@ jobs:
|
|||||||
- name: fillNativeModulesElectron
|
- name: fillNativeModulesElectron
|
||||||
run: |
|
run: |
|
||||||
yarn fillNativeModulesElectron
|
yarn fillNativeModulesElectron
|
||||||
|
- name: Install Snapcraft
|
||||||
|
if: matrix.os == 'ubuntu-18.04'
|
||||||
|
uses: samuelmeuli/action-snapcraft@v1
|
||||||
- name: Publish
|
- name: Publish
|
||||||
run: |
|
run: |
|
||||||
yarn run build:app
|
yarn run build:app
|
||||||
@@ -43,6 +46,19 @@ jobs:
|
|||||||
WIN_CSC_LINK: ${{ secrets.WINCERT_CERTIFICATE }}
|
WIN_CSC_LINK: ${{ secrets.WINCERT_CERTIFICATE }}
|
||||||
WIN_CSC_KEY_PASSWORD: ${{ secrets.WINCERT_PASSWORD }}
|
WIN_CSC_KEY_PASSWORD: ${{ secrets.WINCERT_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Save snap login
|
||||||
|
if: matrix.os == 'ubuntu-18.04'
|
||||||
|
run: 'echo "$SNAPCRAFT_LOGIN" > snapcraft.login'
|
||||||
|
shell: bash
|
||||||
|
env:
|
||||||
|
SNAPCRAFT_LOGIN: ${{secrets.SNAPCRAFT_LOGIN}}
|
||||||
|
|
||||||
|
- name: publishSnap
|
||||||
|
if: matrix.os == 'ubuntu-18.04'
|
||||||
|
run: |
|
||||||
|
snapcraft login --with snapcraft.login
|
||||||
|
snapcraft upload --release=beta app/dist/*.snap
|
||||||
|
|
||||||
- name: Copy artifacts
|
- name: Copy artifacts
|
||||||
run: |
|
run: |
|
||||||
mkdir artifacts
|
mkdir artifacts
|
||||||
@@ -50,6 +66,7 @@ jobs:
|
|||||||
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/*.snap artifacts/ || true
|
||||||
# mv app/dist/*.dmg artifacts/ || true
|
# mv app/dist/*.dmg artifacts/ || true
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
|
|||||||
@@ -23,6 +23,8 @@ let splashWindow;
|
|||||||
|
|
||||||
log.transports.file.level = 'debug';
|
log.transports.file.level = 'debug';
|
||||||
autoUpdater.logger = log;
|
autoUpdater.logger = log;
|
||||||
|
// TODO - create settings for this
|
||||||
|
// appUpdater.channel = 'beta';
|
||||||
|
|
||||||
function hideSplash() {
|
function hideSplash() {
|
||||||
if (splashWindow) {
|
if (splashWindow) {
|
||||||
|
|||||||
Reference in New Issue
Block a user