-
-
Notifications
You must be signed in to change notification settings - Fork 535
chore: Improve release workflows #2916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -78,21 +78,25 @@ jobs: | |
|
|
||
| - run: yarn install --immutable | ||
|
|
||
| - name: Rebuild Electron Native Modules | ||
| run: yarn workspace @standardnotes/desktop rebuild:home-server | ||
|
|
||
| - run: yarn build:desktop | ||
|
|
||
| - run: echo APP_VERSION=$(node -p "require('./../web/package.json').version") >> $GITHUB_ENV | ||
|
|
||
| - name: Compile for AppImage | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Now done in each step after rebuilding |
||
| run: yarn run webpack --config desktop.webpack.prod.js | ||
| - name: AppImage | ||
| run: yarn run electron-builder --linux --x64 -c.linux.target=AppImage --publish=never --c.extraMetadata.version=${{ env.APP_VERSION }} | ||
| run: | | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The native modules are currently being rebuilt once before the packaging for both architectures happens. I suspect that might be the reason the native modules are always x64 and the arm64 Linux packages aren't running properly (see standardnotes/forum#3457). This is an attempt to fix the issue |
||
| yarn workspace @standardnotes/desktop rebuild:home-server | ||
| yarn run webpack --config desktop.webpack.prod.js | ||
| yarn run electron-builder --linux --x64 -c.linux.target=AppImage --publish=never --c.extraMetadata.version=${{ env.APP_VERSION }} | ||
|
|
||
| - name: AppImageX64 | ||
| run: yarn run electron-builder --linux --x64 -c.linux.target=AppImage --publish=never --c.extraMetadata.version=${{ env.APP_VERSION }} | ||
| run: | | ||
| yarn workspace @standardnotes/desktop rebuild:home-server | ||
| yarn run webpack --config desktop.webpack.prod.js | ||
| yarn run electron-builder --linux --x64 -c.linux.target=AppImage --publish=never --c.extraMetadata.version=${{ env.APP_VERSION }} | ||
| - name: AppImageArm64 | ||
| run: yarn run electron-builder --linux --arm64 -c.linux.target=AppImage --publish=never --c.extraMetadata.version=${{ env.APP_VERSION }} | ||
| run: | | ||
| yarn workspace @standardnotes/desktop rebuild:home-server --arch arm64 | ||
| yarn run webpack --config desktop.webpack.prod.js | ||
| yarn run electron-builder --linux --arm64 -c.linux.target=AppImage --publish=never --c.extraMetadata.version=${{ env.APP_VERSION }} | ||
| env: | ||
| npm_config_target_arch: 'arm64' | ||
|
|
||
| - name: Upload | ||
| uses: actions/upload-artifact@v4.0.0 | ||
|
|
@@ -125,19 +129,16 @@ jobs: | |
|
|
||
| - run: yarn install --immutable | ||
|
|
||
| - name: Rebuild Electron Native Modules | ||
| run: yarn workspace @standardnotes/desktop rebuild:home-server | ||
|
|
||
| - run: yarn build:desktop | ||
|
|
||
| - run: echo APP_VERSION=$(node -p "require('./../web/package.json').version") >> $GITHUB_ENV | ||
|
|
||
| - name: Dir | ||
| run: | | ||
| yarn workspace @standardnotes/desktop rebuild:home-server | ||
| yarn run webpack --config desktop.webpack.prod.js | ||
| yarn run electron-builder --linux --x64 -c.linux.target=dir --publish=never --c.extraMetadata.version=${{ env.APP_VERSION }} | ||
| - name: DirArm64 | ||
| run: | | ||
| yarn workspace @standardnotes/desktop rebuild:home-server --arch arm64 | ||
| yarn run webpack --config desktop.webpack.prod.js | ||
| yarn run electron-builder --linux --arm64 -c.linux.target=dir --publish=never --c.extraMetadata.version=${{ env.APP_VERSION }} | ||
| env: | ||
|
|
@@ -165,22 +166,19 @@ jobs: | |
|
|
||
| - run: yarn install --immutable | ||
|
|
||
| - name: Rebuild Electron Native Modules | ||
| run: yarn workspace @standardnotes/desktop rebuild:home-server | ||
|
|
||
| - run: yarn build:desktop | ||
|
|
||
| - run: echo APP_VERSION=$(node -p "require('./../web/package.json').version") >> $GITHUB_ENV | ||
|
|
||
| - name: Deb | ||
| run: | | ||
| yarn workspace @standardnotes/desktop rebuild:home-server | ||
| yarn run webpack --config desktop.webpack.prod.js --env deb | ||
| yarn run electron-builder --linux --x64 -c.linux.target=deb --publish=never --c.extraMetadata.version=${{ env.APP_VERSION }} | ||
| - name: DebArm64 | ||
| env: | ||
| npm_config_target_arch: 'arm64' | ||
| USE_SYSTEM_FPM: 'true' | ||
| run: | | ||
| yarn workspace @standardnotes/desktop rebuild:home-server --arch arm64 | ||
| yarn run webpack --config desktop.webpack.prod.js --env deb | ||
| yarn run electron-builder --linux --arm64 -c.linux.target=deb --publish=never --c.extraMetadata.version=${{ env.APP_VERSION }} | ||
|
|
||
|
|
@@ -317,7 +315,7 @@ jobs: | |
|
|
||
| - name: Certificates Sync | ||
| run: | | ||
| smctl windows certsync | ||
| smctl windows certsync | ||
| shell: cmd | ||
|
|
||
| - name: Build & Sign With Electron Builder | ||
|
|
@@ -373,8 +371,8 @@ jobs: | |
| uses: softprops/action-gh-release@v1 | ||
| with: | ||
| token: ${{ secrets.CI_PAT_TOKEN }} | ||
| tag_name: "@standardnotes/desktop@${{ env.APP_VERSION }}" | ||
| name: "Desktop ${{ env.APP_VERSION }}" | ||
| tag_name: '@standardnotes/desktop@${{ env.APP_VERSION }}' | ||
| name: 'Desktop ${{ env.APP_VERSION }}' | ||
| body: ${{ steps.release-notes.outputs.result }} | ||
| prerelease: true | ||
| draft: false | ||
|
|
@@ -395,5 +393,3 @@ jobs: | |
| token: ${{ secrets.CI_PAT_TOKEN }} | ||
| repository: ${{ secrets.RELEASES_EVENT_RECEIVING_REPO }} | ||
| event-type: releases-updated-event | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -55,7 +55,7 @@ | |
| "@babel/core": "*", | ||
| "@babel/preset-env": "*", | ||
| "@electron/notarize": "^3.0.0", | ||
| "@electron/rebuild": "3.6.0", | ||
| "@electron/rebuild": "3.6.1", | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's a fix on 3.6.1 which might affect rebuilding for different platforms electron/rebuild#1153 |
||
| "@types/fs-extra": "^11.0.1", | ||
| "@types/lodash": "^4.14.189", | ||
| "@types/mime-types": "^2.1.1", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -68,7 +68,7 @@ platform :ios do | |
| run_precheck_before_submit: false, | ||
| submission_information: { add_id_info_uses_idfa: false }, | ||
| release_notes: { | ||
| 'default': 'Fixes and improvements.' | ||
| 'en-US': 'Fixes and improvements.' | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Attempt to fix the current error in the mobile workflow, which fails in this command stating the release_notes field is missing |
||
| } | ||
| ) | ||
| end | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the same as
yarn run webpack --config desktop.webpack.prod.jswhich runs below I think?