✨ add win + macos to release
This commit is contained in:
		
							parent
							
								
									2287c294de
								
							
						
					
					
						commit
						c29537b560
					
				
							
								
								
									
										37
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										37
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							| @ -17,7 +17,7 @@ jobs: | ||||
|       - name: Extract version | ||||
|         id: extract_version | ||||
|         uses: Saionaro/extract-package-version@v1.0.6 | ||||
|       - name: Build # This would actually build your project, using zip for an example artifact | ||||
|       - name: Build | ||||
|         run: | | ||||
|           npm install | ||||
|           npm run bundle | ||||
| @ -27,17 +27,42 @@ jobs: | ||||
|         env: | ||||
|           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||
|         with: | ||||
|           tag_name: ${{ steps.extract_version.outputs.version }} | ||||
|           tag_name: v${{ steps.extract_version.outputs.version }} | ||||
|           release_name: Release ${{ steps.extract_version.outputs.version }} | ||||
|           draft: true | ||||
|           prerelease: true | ||||
|       - name: Upload Release Asset | ||||
|           prerelease: true # TODO: change this to false | ||||
|       - name: Upload Release Linux | ||||
|         id: upload-release-asset | ||||
|         uses: actions/upload-release-asset@v1 | ||||
|         env: | ||||
|           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||
|         with: | ||||
|           upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps | ||||
|           upload_url: ${{ steps.create_release.outputs.upload_url }} | ||||
|           asset_path: ./build/api-linux | ||||
|           asset_name: server-api-linux | ||||
|           asset_name: fosscord-api-linux | ||||
|           asset_content_type: application/x-binary | ||||
|       - name: Upload Release MacOS | ||||
|         id: upload-release-asset | ||||
|         uses: actions/upload-release-asset@v1 | ||||
|         env: | ||||
|           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||
|         with: | ||||
|           upload_url: ${{ steps.create_release.outputs.upload_url }} | ||||
|           asset_path: ./build/api-macos | ||||
|           asset_name: fosscord-api-macos | ||||
|           asset_content_type: application/x-binary | ||||
|       - name: Upload Release Windows | ||||
|         id: upload-release-asset | ||||
|         uses: actions/upload-release-asset@v1 | ||||
|         env: | ||||
|           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||
|         with: | ||||
|           upload_url: ${{ steps.create_release.outputs.upload_url }} | ||||
|           asset_path: ./build/api-win | ||||
|           asset_name: fosscord-api-windows.exe | ||||
|           asset_content_type: application/x-binary | ||||
|       - uses: eregon/publish-release@v1 | ||||
|         env: | ||||
|           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||
|         with: | ||||
|           release_id: ${{ steps.create_release.outputs.id }} | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Flam3rboy
						Flam3rboy