调试 github action

This commit is contained in:
卢春梦 2024-06-12 15:45:29 +08:00
parent 80a4d182c9
commit 6ed7240c72
3 changed files with 29 additions and 26 deletions

View File

@ -20,13 +20,9 @@ jobs:
server-id: oss server-id: oss
server-username: MAVEN_USERNAME server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD server-password: MAVEN_PASSWORD
gpg-passphrase: MAVEN_GPG_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
- name: Publish to the Maven Central Repository - name: Publish to the Maven Central Repository
run: | run: |
chmod +x ./deploy.sh mvn clean package deploy -P !develop
./deploy.sh
env: env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
MAVEN_GPG_PASSWORD: ${{ secrets.MAVEN_GPG_PASSWORD }}

View File

@ -14,4 +14,4 @@ jobs:
cache: 'maven' cache: 'maven'
java-version: 17 java-version: 17
- name: Build with Maven - name: Build with Maven
run: mvn package run: mvn package -P !develop

47
pom.xml
View File

@ -496,26 +496,6 @@
</plugins> </plugins>
</build> </build>
<repositories>
<repository>
<id>aliyun-repos</id>
<url>https://maven.aliyun.com/nexus/content/groups/public/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>aliyun-plugin</id>
<url>https://maven.aliyun.com/nexus/content/groups/public/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
<distributionManagement> <distributionManagement>
<snapshotRepository> <snapshotRepository>
<id>oss</id> <id>oss</id>
@ -528,6 +508,33 @@
</distributionManagement> </distributionManagement>
<profiles> <profiles>
<profile>
<id>develop</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>aliyun-repos</id>
<url>https://maven.aliyun.com/repository/public/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>aliyun-plugin</id>
<url>https://maven.aliyun.com/nexus/content/groups/public/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
<profile> <profile>
<id>release</id> <id>release</id>
<build> <build>