mirror of
				https://github.com/vran-dev/databasir.git
				synced 2025-10-31 12:39:20 +08:00 
			
		
		
		
	Add release github action (#31)
* feat: update workflow * fix: workflow error
This commit is contained in:
		
							
								
								
									
										15
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										15
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							| @@ -9,7 +9,7 @@ on: | ||||
|       - 'v*' | ||||
|  | ||||
| jobs: | ||||
|   jpackage: | ||||
|   release: | ||||
|     runs-on: ubuntu-latest | ||||
|  | ||||
|     steps: | ||||
| @@ -21,16 +21,17 @@ jobs: | ||||
|           server-id: github # Value of the distributionManagement/repository/id field of the pom.xml | ||||
|           settings-path: ${{ github.workspace }} # location for the settings.xml file | ||||
|  | ||||
|       - name: Build with Gradle | ||||
|         uses: gradle/gradle-build-action@937999e9cc2425eddc7fd62d1053baf041147db7 | ||||
|         with: | ||||
|           arguments: api:build -x checkstyleMain -x checkstyleTest | ||||
|       - name: add permission to gradle | ||||
|         run: chmod +x ./gradlew | ||||
|  | ||||
|       - name: Release-mac | ||||
|       - name: build with gradle | ||||
|         run: ./gradlew api:build -x checkstyleMain -x checkstyleTest | ||||
|  | ||||
|       - name: release jar | ||||
|         uses: softprops/action-gh-release@v1 | ||||
|         if: startsWith(github.ref, 'refs/tags/') | ||||
|         with: | ||||
|           files: app/build/libs/databasir.jar | ||||
|           files: api/build/libs/databasir.jar | ||||
|           draft: true | ||||
|           fail_on_unmatched_files: true | ||||
|         env: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user