Compare commits
	
		
			2 Commits
		
	
	
		
			master
			...
			0ea330d48b
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 0ea330d48b | |||
| c241f6b1fe | 
							
								
								
									
										40
									
								
								.gitea/workflows/gradle-publish-dev.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								.gitea/workflows/gradle-publish-dev.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,40 @@ | ||||
| name: Publish | ||||
|  | ||||
| on: | ||||
|   push: | ||||
|     branches: [dev] | ||||
|  | ||||
| jobs: | ||||
|   Gradle-Publish: | ||||
|     runs-on: ubuntu-latest | ||||
|  | ||||
|     steps: | ||||
|       - name: Checkout code | ||||
|         uses: actions/checkout@v4 | ||||
|  | ||||
|       - name: Set up JDK | ||||
|         uses: actions/setup-java@v4 | ||||
|         with: | ||||
|           java-version: '23' | ||||
|           check-latest: true | ||||
|           distribution: 'zulu' | ||||
|  | ||||
|       - name: Setup Gradle | ||||
|         uses: gradle/actions/setup-gradle@v4 | ||||
|         with: | ||||
|           add-job-summary: always | ||||
|           cache-cleanup: on-success | ||||
|  | ||||
|       - name: Cache Gradle dependencies | ||||
|         uses: actions/cache@v4 | ||||
|         with: | ||||
|           path: |  | ||||
|             ~/.gradle/caches | ||||
|           key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||||
|           restore-keys: | | ||||
|             ${{ runner.os }}-gradle- | ||||
|  | ||||
|       - name: Publish Dev | ||||
|         env: | ||||
|           GITEA_TOKEN: ${{ secrets.PUBLISH_PACKAGE_TOKEN }} | ||||
|         run: chmod +x gradlew; ./gradlew publishAllPublicationsToGiteaRepository  | ||||
| @@ -1,11 +1,11 @@ | ||||
| name: Test | ||||
| name: Publish | ||||
|  | ||||
| on: | ||||
|   push: | ||||
|     branches: [master] | ||||
|  | ||||
| jobs: | ||||
|   Gradle-Test: | ||||
|   Gradle-Publish: | ||||
|     runs-on: ubuntu-latest | ||||
|  | ||||
|     steps: | ||||
| @@ -34,7 +34,7 @@ jobs: | ||||
|           restore-keys: | | ||||
|             ${{ runner.os }}-gradle- | ||||
|  | ||||
|       - name: Publish | ||||
|       - name: Publish Release | ||||
|         env: | ||||
|           GITEA_TOKEN: ${{ secrets.PUBLISH_PACKAGE_TOKEN }} | ||||
|         run: chmod +x gradlew; ./gradlew publishAllPublicationsToGiteaRepository | ||||
|         run: chmod +x gradlew; ./gradlew publishAllPublicationsToGiteaRepository -Prelease | ||||
| @@ -8,6 +8,7 @@ allprojects { | ||||
|     group = "net.tomatentum.Marinara" | ||||
|     version = "1.0.0-RC1" + (if (!project.hasProperty("release")) ("-" + getGitHash()) else "") | ||||
|     description = "A simple but powerful, library-agnostic Discord Interaction Wrapper." | ||||
|  | ||||
| } | ||||
|  | ||||
| subprojects { | ||||
| @@ -18,6 +19,8 @@ subprojects { | ||||
|         publishing { | ||||
|             publications { | ||||
|                 create<MavenPublication>("maven") { | ||||
|                     if (!project.hasProperty("release")) | ||||
|                         artifactId = project.getName() + "-dev" | ||||
|                     from(components["java"]) | ||||
|                 } | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user