Skip to content

Commit 814a87d

Browse files
committed
Add deploy action
1 parent e6d985c commit 814a87d

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

.github/workflows/deploy.yaml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Publish package to the Maven Central Repository
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Set up Maven Central Repository
11+
uses: actions/setup-java@v3
12+
with:
13+
java-version: '8'
14+
distribution: 'temurin'
15+
server-id: ossrh
16+
server-username: MAVEN_USERNAME
17+
server-password: MAVEN_PASSWORD
18+
- name: Publish package
19+
run: mvn --batch-mode deploy
20+
env:
21+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
22+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

ascii-render/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
<distributionManagement>
2929
<snapshotRepository>
3030
<id>ossrh</id>
31-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
31+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
3232
</snapshotRepository>
3333
<repository>
3434
<id>ossrh</id>
35-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
35+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
3636
</repository>
3737
</distributionManagement>
3838

0 commit comments

Comments
 (0)