mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
feat(ci): release all at once and deploy to winget
This commit is contained in:
parent
0ddc1265d2
commit
560780e2fc
12
.github/workflows/release-winget.yml
vendored
12
.github/workflows/release-winget.yml
vendored
@ -1,9 +1,19 @@
|
|||||||
name: Release to winget
|
name: Release to winget
|
||||||
on:
|
on:
|
||||||
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
release_tag:
|
||||||
|
description: 'Git tag to release from'
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
secrets:
|
||||||
|
token:
|
||||||
|
required: true
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
release_tag:
|
release_tag:
|
||||||
description: 'Git tag to release from'
|
description: 'Git tag to release from'
|
||||||
|
type: string
|
||||||
required: true
|
required: true
|
||||||
jobs:
|
jobs:
|
||||||
release-winget:
|
release-winget:
|
||||||
@ -13,5 +23,5 @@ jobs:
|
|||||||
uses: vedantmgoyal9/winget-releaser@main
|
uses: vedantmgoyal9/winget-releaser@main
|
||||||
with:
|
with:
|
||||||
identifier: TriliumNext.Notes
|
identifier: TriliumNext.Notes
|
||||||
token: ${{ secrets.WINGET_PAT }}
|
token: ${{ secrets.token }}
|
||||||
release-tag: ${{ github.event.inputs.release_tag }}
|
release-tag: ${{ github.event.inputs.release_tag }}
|
||||||
|
43
.github/workflows/release.yml
vendored
43
.github/workflows/release.yml
vendored
@ -53,14 +53,13 @@ jobs:
|
|||||||
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
|
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
|
||||||
WINDOWS_SIGN_EXECUTABLE: ${{ vars.WINDOWS_SIGN_EXECUTABLE }}
|
WINDOWS_SIGN_EXECUTABLE: ${{ vars.WINDOWS_SIGN_EXECUTABLE }}
|
||||||
|
|
||||||
- name: Publish release
|
- name: Upload the artifact
|
||||||
uses: softprops/action-gh-release@v2
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
draft: true
|
name: release-desktop-${{ matrix.os.name }}-${{ matrix.arch }}
|
||||||
fail_on_unmatched_files: true
|
path: upload/*.*
|
||||||
files: upload/*.*
|
|
||||||
|
|
||||||
build_linux_server-x64:
|
build_server:
|
||||||
name: Build Linux Server
|
name: Build Linux Server
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@ -81,9 +80,39 @@ jobs:
|
|||||||
os: linux
|
os: linux
|
||||||
arch: ${{ matrix.arch }}
|
arch: ${{ matrix.arch }}
|
||||||
|
|
||||||
|
- name: Upload the artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: release-server-linux-${{ matrix.arch }}
|
||||||
|
path: upload/*.*
|
||||||
|
|
||||||
|
publish_release:
|
||||||
|
name: Publish release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs:
|
||||||
|
- make-electron
|
||||||
|
- build_server
|
||||||
|
steps:
|
||||||
|
- run: mkdir upload
|
||||||
|
|
||||||
|
- name: Download all artifacts
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
merge-multiple: true
|
||||||
|
pattern: release-*
|
||||||
|
path: upload
|
||||||
|
|
||||||
- name: Publish release
|
- name: Publish release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
draft: true
|
draft: false
|
||||||
|
make_latest: false # ! Make sure this is removed before merging.
|
||||||
|
body_path: docs/Release Notes/Release Notes/${{ github.ref }}.md
|
||||||
fail_on_unmatched_files: true
|
fail_on_unmatched_files: true
|
||||||
files: upload/*.*
|
files: upload/*.*
|
||||||
|
|
||||||
|
- name: Publish to winget
|
||||||
|
uses: ./.github/workflows/release-winget.yml
|
||||||
|
with:
|
||||||
|
release_tag: ${{ github.ref }}
|
||||||
|
token: ${{ secrets.WINGET_PAT }}
|
||||||
|
4
docs/Release Notes/Release Notes/v0.0.0.md
Normal file
4
docs/Release Notes/Release Notes/v0.0.0.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# v0.0.0!
|
||||||
|
|
||||||
|
This is just a test version to ensure end-to-end functionality of the release process for TriliumNext,
|
||||||
|
especially in regards to the `winget` auto-PR.
|
Loading…
x
Reference in New Issue
Block a user