Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 27 additions & 34 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Release
on:
# ! Make sure this is removed before merging.
push:
tags:
- "v*"
permissions:
contents: write
concurrency:
Expand All @@ -15,16 +14,8 @@ jobs:
strategy:
fail-fast: false
matrix:
arch: [x64, arm64]
arch: [x64]
os:
- name: macos
image: macos-latest
shell: bash
forge_platform: darwin
- name: linux
image: ubuntu-latest
shell: bash
forge_platform: linux
- name: windows
image: win-signing
shell: cmd
Expand All @@ -36,6 +27,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 22

- name: Run the build
uses: ./.github/actions/build-electron
with:
Expand All @@ -53,37 +45,38 @@ jobs:
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
WINDOWS_SIGN_EXECUTABLE: ${{ vars.WINDOWS_SIGN_EXECUTABLE }}

- name: Publish release
uses: softprops/action-gh-release@v2
- name: Upload the artifact
uses: actions/upload-artifact@v4
with:
draft: true
fail_on_unmatched_files: true
files: upload/*.*
name: release-desktop-${{ matrix.os.name }}-${{ matrix.arch }}
path: upload/*.*

build_linux_server-x64:
name: Build Linux Server
strategy:
fail-fast: false
matrix:
arch: [x64, arm64]
include:
- arch: x64
runs-on: ubuntu-latest
- arch: arm64
runs-on: ubuntu-24.04-arm
runs-on: ${{ matrix.runs-on }}
publish_release:
name: Publish release
runs-on: ubuntu-latest
needs:
- make-electron
steps:
- uses: actions/checkout@v4
- run: mkdir upload

- name: Run the build
uses: ./.github/actions/build-server
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
os: linux
arch: ${{ matrix.arch }}
merge-multiple: true
pattern: release-*
path: upload

- name: Publish release
uses: softprops/action-gh-release@v2
with:
draft: true
tag_name: 0.0.0 # ! Make sure this is removed before merging.
draft: false
make_latest: false # ! Make sure this is removed before merging.
fail_on_unmatched_files: true
files: upload/*.*

- name: Publish to WinGet
uses: vedantmgoyal9/winget-releaser@main
with:
identifier: TriliumNext.Notes
token: ${{ secrets.WINGET_PAT }}
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"vitest.explorer",
"ms-playwright.playwright",
"tobermory.es6-string-html",
"dbaeumer.vscode-eslint"
"dbaeumer.vscode-eslint",
"github.vscode-github-actions"
]
}
Loading