Skip to content

Build your personal knowledge base with Trilium Notes

refactor(ci): try to deploy nightly with same release action

Elian Doranfe85e1e16cd8
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index 4257cbe551..22a6b26b60 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -46,23 +46,14 @@ jobs:
arch: ${{ matrix.arch }}
extension: ${{ join(matrix.os.extension, ' ') }}
- - name: Deploy release
- uses: WebFreak001/[email protected]
+ - name: Publish release
+ uses: softprops/action-gh-release@v2
with:
- upload_url: ${{ env.GITHUB_UPLOAD_URL }}
- release_id: ${{ env.GITHUB_RELEASE_ID }}
- asset_path: upload/TriliumNextNotes-${{ github.ref_name }}-${{ matrix.os.name }}-${{ matrix.arch }}.zip # path to archive to upload
- asset_name: TriliumNextNotes-${{ github.ref_name }}-${{ matrix.os.name }}-${{ matrix.arch }}-nightly.zip # name to upload the release as, use $$ to insert date (YYYYMMDD) and 6 letter commit hash
- asset_content_type: application/zip # required by GitHub API
-
- - name: Deploy installer release
- uses: WebFreak001/[email protected]
- with:
- upload_url: ${{ env.GITHUB_UPLOAD_URL }}
- release_id: ${{ env.GITHUB_RELEASE_ID }}
- asset_path: upload/TriliumNextNotes-${{ github.ref_name }}-${{ matrix.os.name }}-${{ matrix.arch }}.${{ matrix.os.extension }} # path to archive to upload
- asset_name: TriliumNextNotes-${{ github.ref_name }}-${{ matrix.os.name }}-${{ matrix.arch }}-nightly.${{ matrix.os.extension }} # name to upload the release as, use $$ to insert date (YYYYMMDD) and 6 letter commit hash
- asset_content_type: application/zip # required by GitHub API
+ draft: true
+ fail_on_unmatched_files: true
+ files: upload/*.*
+ tag_name: nightly
+ name: Nightly Build
nightly-server:
name: Deploy server nightly
strategy:
@@ -83,11 +74,11 @@ jobs:
with:
arch: ${{ matrix.arch }}
- - name: Deploy release
- uses: WebFreak001/[email protected]
+ - name: Publish release
+ uses: softprops/action-gh-release@v2
with:
- upload_url: ${{ env.GITHUB_UPLOAD_URL }}
- release_id: ${{ env.GITHUB_RELEASE_ID }}
- asset_path: upload/TriliumNextNotes-linux-${{ matrix.arch }}-${{ github.ref_name }}.tar.xz # path to archive to upload
- asset_name: TriliumNextNotes-linux-${{ matrix.arch }}-nightly.zip # name to upload the release as, use $$ to insert date (YYYYMMDD) and 6 letter commit hash
- asset_content_type: application/zip # required by GitHub API
+ draft: true
+ fail_on_unmatched_files: true
+ files: upload/*.*
+ tag_name: nightly
+ name: Nightly Build