|
13 | 13 |
|
14 | 14 | jobs: |
15 | 15 | build-jar: |
16 | | - name: Build Jar |
| 16 | + name: Build And Publish |
17 | 17 | runs-on: ubuntu-latest |
18 | 18 | steps: |
19 | 19 | - uses: actions/checkout@v4 |
|
45 | 45 | name: boot |
46 | 46 | path: boot/build/libs/*.jar |
47 | 47 |
|
| 48 | + - name: Publish to MavenCentral with Gradle |
| 49 | + env: |
| 50 | + ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralUsername }} |
| 51 | + ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralPassword }} |
| 52 | + ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKey }} |
| 53 | + ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKeyId }} |
| 54 | + ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKeyPassword }} |
| 55 | + run: ./gradlew publishAllToMavenCentral |
| 56 | + |
48 | 57 | docker-push: |
49 | 58 | name: Docker Push |
50 | 59 | needs: [ build-jar ] |
|
78 | 87 | push: true |
79 | 88 | tags: docker.io/reajason/memshell-party:dev |
80 | 89 |
|
81 | | - deploy-maven: |
82 | | - name: Deploy to Maven Central |
83 | | - needs: [ build-jar ] |
84 | | - runs-on: ubuntu-latest |
85 | | - steps: |
86 | | - - uses: actions/checkout@v4 |
87 | | - - name: Setup Java |
88 | | - uses: actions/setup-java@v4 |
89 | | - with: |
90 | | - distribution: 'temurin' |
91 | | - java-version: 17 |
92 | | - |
93 | | - - name: Setup Gradle |
94 | | - uses: gradle/actions/setup-gradle@v4 |
95 | | - |
96 | | - - name: Publish with Gradle |
97 | | - env: |
98 | | - ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralUsername }} |
99 | | - ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralPassword }} |
100 | | - ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKey }} |
101 | | - ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKeyId }} |
102 | | - ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKeyPassword }} |
103 | | - run: ./gradlew publishAllToMavenCentral |
104 | | - |
105 | 90 | deploy-northflank: |
106 | 91 | name: Deploy to Northflank |
107 | 92 | needs: [ docker-push ] |
|
0 commit comments