mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	refactor(ci): try to deploy nightly with same release action
This commit is contained in:
		
							
								
								
									
										37
									
								
								.github/workflows/nightly.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										37
									
								
								.github/workflows/nightly.yml
									
									
									
									
										vendored
									
									
								
							| @@ -46,23 +46,14 @@ jobs: | ||||
|           arch: ${{ matrix.arch }} | ||||
|           extension: ${{ join(matrix.os.extension, ' ') }} | ||||
|  | ||||
|       - name: Deploy release | ||||
|         uses: WebFreak001/deploy-nightly@v3.2.0 | ||||
|       - 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/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 | ||||
|           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/deploy-nightly@v3.2.0 | ||||
|       - 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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user