提交 dff04cd0 编写于 作者: 智布道's avatar 智布道 👁

📦 Update publish-snapshot.yml

上级 82dfd24c
......@@ -20,14 +20,20 @@ jobs:
uses: actions/setup-java@v2
with:
java-version: '8'
# 安装JDK环境
- name: Set up Apache Maven Central
uses: actions/setup-java@v2
with:
distribution: 'adopt'
server-id: 'sonatype-nexus-snapshots' # Value of the distributionManagement/repository/id field of the pom.xml
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Build with Maven
run: mvn -B package --file pom.xml
gpg-passphrase: MAVEN_GPG_PASSWORD
gpg-private-key: MAVEN_GPG_PRIVATE_KEY
- name: Publish to the Maven Central Repository
run: mvn --batch-mode deploy -e -X -P release
run: mvn clean deploy -e -X -P release
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
MAVEN_GPG_PASSWORD: ${{ secrets.MAVEN_GPG_PASSWORD }}
MAVEN_GPG_PRIVATE_KEY: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
......@@ -272,6 +272,12 @@
</goals>
</execution>
</executions>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</plugin>
</plugins>
</build>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册