mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 12:43:58 +00:00
build app check
This commit is contained in:
@@ -5,6 +5,7 @@ _templates:
|
|||||||
- _community
|
- _community
|
||||||
- _beta
|
- _beta
|
||||||
- _channel
|
- _channel
|
||||||
|
- _publish
|
||||||
string-replace:
|
string-replace:
|
||||||
"<<cd_merged>>": ''
|
"<<cd_merged>>": ''
|
||||||
"<<adjust>>": '--community'
|
"<<adjust>>": '--community'
|
||||||
@@ -16,12 +17,22 @@ _templates:
|
|||||||
defs:
|
defs:
|
||||||
- _community
|
- _community
|
||||||
- _stable
|
- _stable
|
||||||
|
- _publish
|
||||||
string-replace:
|
string-replace:
|
||||||
"<<cd_merged>>": ''
|
"<<cd_merged>>": ''
|
||||||
"<<adjust>>": '--community'
|
"<<adjust>>": '--community'
|
||||||
"<<artifact-root>>": 'app/dist'
|
"<<artifact-root>>": 'app/dist'
|
||||||
"<<suffix>>": 'latest'
|
"<<suffix>>": 'latest'
|
||||||
|
_community_check:
|
||||||
|
file: build-app-check.yaml
|
||||||
|
defs:
|
||||||
|
- _community
|
||||||
|
- _beta
|
||||||
|
string-replace:
|
||||||
|
"<<cd_merged>>": ''
|
||||||
|
"<<adjust>>": '--community'
|
||||||
|
"<<artifact-root>>": 'app/dist'
|
||||||
|
"<<suffix>>": 'check'
|
||||||
|
|
||||||
_premium_beta:
|
_premium_beta:
|
||||||
file: build-app-pro-beta.yaml
|
file: build-app-pro-beta.yaml
|
||||||
@@ -29,6 +40,7 @@ _templates:
|
|||||||
- _premium
|
- _premium
|
||||||
- _beta
|
- _beta
|
||||||
- _channel
|
- _channel
|
||||||
|
- _publish
|
||||||
string-replace:
|
string-replace:
|
||||||
"<<cd_merged>>": |
|
"<<cd_merged>>": |
|
||||||
cd ..
|
cd ..
|
||||||
@@ -37,12 +49,14 @@ _templates:
|
|||||||
"<<artifact-root>>": '../dbgate-merged/app/dist'
|
"<<artifact-root>>": '../dbgate-merged/app/dist'
|
||||||
"<<channel>>": 'premium-beta'
|
"<<channel>>": 'premium-beta'
|
||||||
"<<suffix>>": 'premium-beta'
|
"<<suffix>>": 'premium-beta'
|
||||||
|
|
||||||
_premium_stable:
|
_premium_stable:
|
||||||
file: build-app-pro.yaml
|
file: build-app-pro.yaml
|
||||||
defs:
|
defs:
|
||||||
- _premium
|
- _premium
|
||||||
- _stable
|
- _stable
|
||||||
- _channel
|
- _channel
|
||||||
|
- _publish
|
||||||
string-replace:
|
string-replace:
|
||||||
"<<cd_merged>>": |
|
"<<cd_merged>>": |
|
||||||
cd ..
|
cd ..
|
||||||
@@ -57,6 +71,7 @@ name:
|
|||||||
_community_stable: Electron app
|
_community_stable: Electron app
|
||||||
_premium_beta: Electron app PREMIUM BETA
|
_premium_beta: Electron app PREMIUM BETA
|
||||||
_premium_stable: Electron app PREMIUM
|
_premium_stable: Electron app PREMIUM
|
||||||
|
_community_check: Electron app check build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -64,6 +79,7 @@ on:
|
|||||||
- _community_beta: 'v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+'
|
- _community_beta: 'v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+'
|
||||||
_premium_beta: 'v[0-9]+.[0-9]+.[0-9]+-premium-beta.[0-9]+'
|
_premium_beta: 'v[0-9]+.[0-9]+.[0-9]+-premium-beta.[0-9]+'
|
||||||
_stable: 'v[0-9]+.[0-9]+.[0-9]+'
|
_stable: 'v[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
_community_check: 'check-[0-9]+-[0-9]+-[0-9]+-[0-9]+'
|
||||||
# - '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:
|
# branches:
|
||||||
@@ -197,12 +213,14 @@ jobs:
|
|||||||
mv app/dist/dbgate-pad.xml artifacts/ || true
|
mv app/dist/dbgate-pad.xml artifacts/ || true
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
|
_if: _publish
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.os }}
|
name: ${{ matrix.os }}
|
||||||
path: artifacts
|
path: artifacts
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
|
_if: _publish
|
||||||
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:
|
||||||
|
|||||||
Reference in New Issue
Block a user