mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 13:13:58 +00:00
beta build
This commit is contained in:
68
.github/workflows/build-app-beta.yaml
vendored
Normal file
68
.github/workflows/build-app-beta.yaml
vendored
Normal file
@@ -0,0 +1,68 @@
|
|||||||
|
name: Electron app
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v[0-9]+.[0-9]+.[0-9]+.beta.[0-9]+'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-18.04, windows-2016]
|
||||||
|
# os: [macOS-10.14, windows-2016, ubuntu-18.04]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Context
|
||||||
|
env:
|
||||||
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
||||||
|
run: echo "$GITHUB_CONTEXT"
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
with:
|
||||||
|
fetch-depth: 1
|
||||||
|
- name: Use Node.js 10.x
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: 10.x
|
||||||
|
- name: yarn install
|
||||||
|
run: |
|
||||||
|
yarn install
|
||||||
|
- name: setCurrentVersion
|
||||||
|
run: |
|
||||||
|
yarn setCurrentVersion
|
||||||
|
- name: fillNativeModulesElectron
|
||||||
|
run: |
|
||||||
|
yarn fillNativeModulesElectron
|
||||||
|
- name: Publish
|
||||||
|
run: |
|
||||||
|
yarn run build:app
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GH_TOKEN }} # token for electron publish
|
||||||
|
WIN_CSC_LINK: ${{ secrets.WINCERT_CERTIFICATE }}
|
||||||
|
WIN_CSC_KEY_PASSWORD: ${{ secrets.WINCERT_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Copy artifacts
|
||||||
|
run: |
|
||||||
|
mkdir artifacts
|
||||||
|
|
||||||
|
mv app/dist/*.exe artifacts/ || true
|
||||||
|
mv app/dist/*.AppImage artifacts/ || true
|
||||||
|
mv app/dist/*.deb artifacts/ || true
|
||||||
|
# mv app/dist/*.dmg artifacts/ || true
|
||||||
|
|
||||||
|
- name: Upload artifacts
|
||||||
|
uses: actions/upload-artifact@v1
|
||||||
|
with:
|
||||||
|
name: ${{ matrix.os }}
|
||||||
|
path: artifacts
|
||||||
|
|
||||||
|
- name: Release
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
with:
|
||||||
|
files: 'artifacts/**'
|
||||||
|
prerelease: true
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
3
.github/workflows/build-app.yaml
vendored
3
.github/workflows/build-app.yaml
vendored
@@ -3,7 +3,8 @@ name: Electron app
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
|
- 'v[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
# - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
|
||||||
|
|
||||||
# branches:
|
# branches:
|
||||||
# - production
|
# - production
|
||||||
|
|||||||
3
.github/workflows/build-docker.yaml
vendored
3
.github/workflows/build-docker.yaml
vendored
@@ -5,7 +5,8 @@ name: Docker image
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
|
- 'v[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
# - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
|
||||||
|
|
||||||
# on:
|
# on:
|
||||||
# push:
|
# push:
|
||||||
|
|||||||
Reference in New Issue
Block a user