mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 14:39:34 +01:00
ci: include bundled electron app in desktop build
This commit is contained in:
committed by
Abdullah Atta
parent
4f9fe9b1e0
commit
b21519c24e
14
.github/workflows/desktop.publish.yml
vendored
14
.github/workflows/desktop.publish.yml
vendored
@@ -49,6 +49,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
npm ci --ignore-scripts --prefer-offline --no-audit
|
npm ci --ignore-scripts --prefer-offline --no-audit
|
||||||
npm run bootstrap -- --scope=web
|
npm run bootstrap -- --scope=web
|
||||||
|
npm run bootstrap -- --scope=desktop
|
||||||
|
|
||||||
|
- name: Install sqlite-better-trigram for all arch
|
||||||
|
run: |
|
||||||
|
npm i --cpu arm64 sqlite-better-trigram
|
||||||
|
npm i --cpu x64 sqlite-better-trigram
|
||||||
|
working-directory: ./apps/desktop
|
||||||
|
|
||||||
- name: Setup environment
|
- name: Setup environment
|
||||||
run: |
|
run: |
|
||||||
@@ -57,6 +64,10 @@ jobs:
|
|||||||
- name: Generate desktop build
|
- name: Generate desktop build
|
||||||
run: npx nx build:desktop @notesnook/web
|
run: npx nx build:desktop @notesnook/web
|
||||||
|
|
||||||
|
- name: Build desktop bundle
|
||||||
|
working-directory: ./apps/desktop
|
||||||
|
run: npm run bundle
|
||||||
|
|
||||||
- name: Archive build artifact
|
- name: Archive build artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
@@ -71,7 +82,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Package desktop build
|
- name: Package desktop build
|
||||||
run: |
|
run: |
|
||||||
zip -r ./notesnook_build_v${{ steps.app_metadata.outputs.app_version }}.zip ./apps/web/build/
|
cp -r ./apps/web/build ./apps/desktop/
|
||||||
|
zip -r ./notesnook_build_v${{ steps.app_metadata.outputs.app_version }}.zip ./apps/desktop/build/
|
||||||
echo "Build folder archived to ./notesnook_build_v${{ steps.app_metadata.outputs.app_version }}.zip"
|
echo "Build folder archived to ./notesnook_build_v${{ steps.app_metadata.outputs.app_version }}.zip"
|
||||||
|
|
||||||
- name: Upload desktop build
|
- name: Upload desktop build
|
||||||
|
|||||||
Reference in New Issue
Block a user