Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 520b862

Browse files
committed
Revert "feat(ci): experiment with building Windows on same runner"
This reverts commit ce305f0.
1 parent 5fbd34c commit 520b862

2 files changed

Lines changed: 8 additions & 63 deletions

File tree

.github/workflows/nightly.yml

Lines changed: 6 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ jobs:
4141
image: ubuntu-22.04
4242
shell: bash
4343
forge_platform: linux
44+
- name: windows
45+
image: win-signing
46+
shell: cmd
47+
forge_platform: win32
4448
runs-on: ${{ matrix.os.image }}
4549
steps:
4650
- uses: actions/checkout@v4
@@ -80,7 +84,7 @@ jobs:
8084
prerelease: true
8185
draft: false
8286
fail_on_unmatched_files: true
83-
files: apps/desktop/upload/${{ matrix.arch }}/*.*
87+
files: apps/desktop/upload/*.*
8488
tag_name: nightly
8589
name: Nightly Build
8690

@@ -89,66 +93,7 @@ jobs:
8993
if: ${{ github.event_name == 'pull_request' }}
9094
with:
9195
name: TriliumNextNotes ${{ matrix.os.name }} ${{ matrix.arch }}
92-
path: apps/desktop/upload/${{ matrix.arch }}
93-
94-
nightly-electron-windows:
95-
name: Deploy nightly Windows
96-
runs-on: win-signing
97-
steps:
98-
- uses: actions/checkout@v4
99-
- uses: pnpm/action-setup@v4
100-
- name: Set up node & dependencies
101-
uses: actions/setup-node@v4
102-
with:
103-
node-version: 22
104-
cache: 'pnpm'
105-
- name: Install dependencies
106-
run: pnpm install --frozen-lockfile
107-
- uses: nrwl/nx-set-shas@v4
108-
- name: Update nightly version
109-
run: npm run chore:ci-update-nightly-version
110-
- name: Run the build
111-
uses: ./.github/actions/build-electron
112-
with:
113-
os: windows
114-
arch: x64,arm64
115-
shell: cmd
116-
forge_platform: win32
117-
env:
118-
APPLE_APP_CERTIFICATE_BASE64: ${{ secrets.APPLE_APP_CERTIFICATE_BASE64 }}
119-
APPLE_APP_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_APP_CERTIFICATE_PASSWORD }}
120-
APPLE_INSTALLER_CERTIFICATE_BASE64: ${{ secrets.APPLE_INSTALLER_CERTIFICATE_BASE64 }}
121-
APPLE_INSTALLER_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_INSTALLER_CERTIFICATE_PASSWORD }}
122-
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
123-
APPLE_ID: ${{ secrets.APPLE_ID }}
124-
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
125-
WINDOWS_SIGN_EXECUTABLE: ${{ vars.WINDOWS_SIGN_EXECUTABLE }}
126-
127-
- name: Publish release
128-
uses: softprops/action-gh-release@v2.3.2
129-
if: ${{ github.event_name != 'pull_request' }}
130-
with:
131-
make_latest: false
132-
prerelease: true
133-
draft: false
134-
fail_on_unmatched_files: true
135-
files: apps/desktop/upload/*/*.*
136-
tag_name: nightly
137-
name: Nightly Build
138-
139-
- name: Publish artifacts
140-
uses: actions/upload-artifact@v4
141-
if: ${{ github.event_name == 'pull_request' }}
142-
with:
143-
name: TriliumNextNotes windows x64
144-
path: apps/desktop/upload/x64
145-
146-
- name: Publish artifacts
147-
uses: actions/upload-artifact@v4
148-
if: ${{ github.event_name == 'pull_request' }}
149-
with:
150-
name: TriliumNextNotes windows arm64
151-
path: apps/desktop/upload/arm64
96+
path: apps/desktop/upload
15297

15398
nightly-server:
15499
name: Deploy server nightly

apps/desktop/electron-forge/forge.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,9 @@ const config: ForgeConfig = {
214214
},
215215
// Gather all the artifacts produced by the makers and copy them to a common upload directory.
216216
async postMake(_, makeResults) {
217+
const outputDir = path.join(__dirname, "..", "upload");
218+
fs.mkdirpSync(outputDir);
217219
for (const makeResult of makeResults) {
218-
const outputDir = path.join(__dirname, "..", "upload", makeResult.arch);
219-
fs.mkdirpSync(outputDir);
220220
for (const artifactPath of makeResult.artifacts) {
221221
// Ignore certain artifacts.
222222
let fileName = path.basename(artifactPath);

0 commit comments

Comments
 (0)