Skip to content

Commit 91e766b

Browse files
committed
ci: simplify steps
1 parent 9c4688c commit 91e766b

File tree

1 file changed

+10
-25
lines changed

1 file changed

+10
-25
lines changed

.github/workflows/dev-deploy.yaml

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313

1414
jobs:
1515
build-jar:
16-
name: Build Jar
16+
name: Build And Publish
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v4
@@ -45,6 +45,15 @@ jobs:
4545
name: boot
4646
path: boot/build/libs/*.jar
4747

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+
4857
docker-push:
4958
name: Docker Push
5059
needs: [ build-jar ]
@@ -78,30 +87,6 @@ jobs:
7887
push: true
7988
tags: docker.io/reajason/memshell-party:dev
8089

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-
10590
deploy-northflank:
10691
name: Deploy to Northflank
10792
needs: [ docker-push ]

0 commit comments

Comments
 (0)