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

This commit is contained in:
Elian Doran 2025-02-05 19:10:08 +02:00
parent 7590c1da24
commit fe85e1e16c
No known key found for this signature in database

View File

@ -46,23 +46,14 @@ jobs:
arch: ${{ matrix.arch }} arch: ${{ matrix.arch }}
extension: ${{ join(matrix.os.extension, ' ') }} extension: ${{ join(matrix.os.extension, ' ') }}
- name: Deploy release - name: Publish release
uses: WebFreak001/deploy-nightly@v3.2.0 uses: softprops/action-gh-release@v2
with: with:
upload_url: ${{ env.GITHUB_UPLOAD_URL }} draft: true
release_id: ${{ env.GITHUB_RELEASE_ID }} fail_on_unmatched_files: true
asset_path: upload/TriliumNextNotes-${{ github.ref_name }}-${{ matrix.os.name }}-${{ matrix.arch }}.zip # path to archive to upload files: 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 tag_name: nightly
asset_content_type: application/zip # required by GitHub API name: Nightly Build
- name: Deploy installer release
uses: WebFreak001/deploy-nightly@v3.2.0
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
nightly-server: nightly-server:
name: Deploy server nightly name: Deploy server nightly
strategy: strategy:
@ -83,11 +74,11 @@ jobs:
with: with:
arch: ${{ matrix.arch }} arch: ${{ matrix.arch }}
- name: Deploy release - name: Publish release
uses: WebFreak001/deploy-nightly@v3.2.0 uses: softprops/action-gh-release@v2
with: with:
upload_url: ${{ env.GITHUB_UPLOAD_URL }} draft: true
release_id: ${{ env.GITHUB_RELEASE_ID }} fail_on_unmatched_files: true
asset_path: upload/TriliumNextNotes-linux-${{ matrix.arch }}-${{ github.ref_name }}.tar.xz # path to archive to upload files: 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 tag_name: nightly
asset_content_type: application/zip # required by GitHub API name: Nightly Build