Remove unix build instructions #2
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: Release with EV Signature | |
on: | |
push: | |
branches: | |
- "test/ev-signature" | |
workflow_dispatch: | |
permissions: | |
contents: write | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
make-electron: | |
name: Make Electron | |
strategy: | |
fail-fast: false | |
matrix: | |
arch: [x64, arm64] | |
os: | |
- name: windows | |
image: windows-latest | |
extension: exe | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up node & dependencies | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: npm ci | |
- name: Update build info | |
run: npm run update-build-info | |
- name: Run electron-forge | |
run: npm run make-electron -- --arch=${{ matrix.arch }} | |
- name: Prepare artifacts (Windows) | |
if: runner.os == 'windows' | |
run: | | |
mkdir upload | |
$file = Get-ChildItem -Path out/make -Filter '*.zip' -Recurse | Select-Object -First 1 | |
Copy-Item -Path $file.FullName -Destination "upload/TriliumNextNotes-${{ github.ref_name }}-${{ matrix.os.name }}-${{ matrix.arch }}.zip" | |
$file = Get-ChildItem -Path out/make -Filter '*.${{ matrix.os.extension }}' -Recurse | Select-Object -First 1 | |
Copy-Item -Path $file.FullName -Destination "upload/TriliumNextNotes-${{ github.ref_name }}-${{ matrix.os.name }}-${{ matrix.arch }}.${{ matrix.os.extension }}" | |
- name: Publish release | |
uses: softprops/action-gh-release@v2 | |
with: | |
draft: true | |
fail_on_unmatched_files: true | |
files: upload/*.* |