diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e473a4a7f0..adb1b313e6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,7 @@ name: Release on: + # ! Make sure this is removed before merging. push: - tags: - - "v*" permissions: contents: write concurrency: @@ -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 @@ -36,6 +27,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: 22 + - name: Run the build uses: ./.github/actions/build-electron with: @@ -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 }} diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 17970ebe81..6ce83eac67 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -5,6 +5,7 @@ "vitest.explorer", "ms-playwright.playwright", "tobermory.es6-string-html", - "dbaeumer.vscode-eslint" + "dbaeumer.vscode-eslint", + "github.vscode-github-actions" ] }