Skip to content

Commit 6752159

Browse files
committed
fix
1 parent a101bb8 commit 6752159

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,18 @@ on:
77
jobs:
88
build:
99
runs-on: ubuntu-latest
10-
permissions:
11-
contents: read
12-
packages: write
1310
steps:
1411
- uses: actions/checkout@v2
1512
- name: Set up JDK 11
1613
uses: actions/setup-java@v2
1714
with:
1815
java-version: '11'
1916
distribution: 'adopt'
17+
server-id: ossrh
18+
server-username: MAVEN_USERNAME
19+
server-password: MAVEN_PASSWORD
2020
- name: Build with Maven
2121
run: mvn --batch-mode deploy
2222
env:
23-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
24+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.pigumer.tools.archetype</groupId>
66
<artifactId>openapi-archetype</artifactId>
7-
<version>0.1.4</version>
7+
<version>0.1.5</version>
88
<packaging>maven-archetype</packaging>
99

1010
<name>openapi-archetype</name>
@@ -58,9 +58,9 @@
5858

5959
<distributionManagement>
6060
<repository>
61-
<id>github</id>
62-
<name>GitHub Packages</name>
63-
<url>https://maven.pkg.github.com/PigumerGroup/openapi-archetype</url>
61+
<id>ossrh</id>
62+
<name>Central Repository OSSRH</name>
63+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
6464
</repository>
6565
</distributionManagement>
6666
</project>

0 commit comments

Comments
 (0)