-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b22de29
commit 58c1332
Showing
7 changed files
with
80 additions
and
19 deletions.
There are no files selected for viewing
9 changes: 4 additions & 5 deletions
9
.github/workflows/build-pull-request.yaml → .github/workflows/build-main.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Release Build | ||
|
||
on: | ||
# push: | ||
# tags: | ||
# - "*.*.*" | ||
pull_request: | ||
branches: [main] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
uses: ./.github/workflows/workflow-build.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Electron Build and Publish | ||
|
||
on: | ||
workflow_run: | ||
workflows: [Release Build] | ||
types: [completed] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [18.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Cache node modules | ||
id: cache-npm | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Build electron app | ||
run: | | ||
cd webapp | ||
npm ci | ||
npm run build-electron | ||
env: | ||
AWS_REGION: ${{ vars.AWS_REGION }} | ||
DOMAIN_NAME: ${{ vars.DOMAIN_NAME }} | ||
API_URL: ${{ vars.API_URL }} | ||
COGNITO_USER_POOL_ID: ${{ vars.COGNITO_USER_POOL_ID }} | ||
COGNITO_APP_CLIENT_ID: ${{ vars.COGNITO_APP_CLIENT_ID }} | ||
REDIRECT_SIGN_IN: ${{ vars.REDIRECT_SIGN_IN }} | ||
REDIRECT_SIGN_OUT: ${{ vars.REDIRECT_SIGN_OUT }} | ||
AUTH_GUARD_REDIRECT: ${{ vars.AUTH_GUARD_REDIRECT }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "webapp", | ||
"version": "1.0.2", | ||
"version": "1.0.0", | ||
"main": "electron.js", | ||
"scripts": { | ||
"ng": "ng", | ||
|