feat(ci): adapt hook script to call executable #261
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
name: Main | |
on: | |
push: | |
branches: | |
- "feature/update**" | |
- "feature/server_esm**" | |
- "feature/windows_signing" | |
paths-ignore: | |
- "docs/**" | |
- ".github/workflows/main-docker.yml" | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
make-electron: | |
name: Make Electron | |
strategy: | |
fail-fast: false | |
matrix: | |
arch: [x64] | |
os: | |
- name: windows | |
image: win-signing | |
extension: exe | |
runs-on: ${{ matrix.os.image }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up node & dependencies | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Run the build | |
uses: ./.github/actions/build-electron | |
with: | |
os: ${{ matrix.os.name }} | |
arch: ${{ matrix.arch }} | |
extension: ${{ matrix.os.extension }} | |
env: | |
WINDOWS_SIGNTOOL_PATH: "C:\\ev_signer_trilium\\ev_signer_trilium.exe" | |
WINDOWS_SIGN_WITH_PARAMS: --executable | |
- name: Publish artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: TriliumNextNotes ${{ matrix.os.name }} ${{ matrix.arch }}.zip | |
path: upload/*.zip | |
- name: Publish installer artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: TriliumNextNotes ${{ matrix.os.name }} ${{ matrix.arch }}.${{matrix.os.extension}} | |
path: upload/*.${{ matrix.os.extension }} |