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

📦 Update publish-snapshot.yml

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