mirror of
https://github.com/yanlongqi/jhinno-openapi-java-sdk.git
synced 2026-03-22 06:15:10 +08:00
feat(流水线): github的流水线配置
This commit is contained in:
17
.github/workflows/release.yml
vendored
17
.github/workflows/release.yml
vendored
@@ -17,7 +17,22 @@ jobs:
|
|||||||
server-id: sonatype-nexus-staging
|
server-id: sonatype-nexus-staging
|
||||||
server-username: ${{ secrets.OSSRH_USER }}
|
server-username: ${{ secrets.OSSRH_USER }}
|
||||||
server-password: ${{ secrets.OSSRH_PASSWORD }}
|
server-password: ${{ secrets.OSSRH_PASSWORD }}
|
||||||
gpg-passphrase: ${{ secrets.GPG_PASSWORD }}
|
gpg-passphrase: ${{ secrets.GPG_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Configure GPG for CI
|
||||||
|
run: |
|
||||||
|
# Create .gnupg directory
|
||||||
|
mkdir -p ~/.gnupg/
|
||||||
|
# Configure GPG to use non-interactive mode
|
||||||
|
echo "use-agent" > ~/.gnupg/gpg.conf
|
||||||
|
echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf
|
||||||
|
echo "allow-loopback-pinentry" > ~/.gnupg/gpg-agent.conf
|
||||||
|
# Set permissions
|
||||||
|
chmod 700 ~/.gnupg
|
||||||
|
chmod 600 ~/.gnupg/*
|
||||||
|
# Restart agent
|
||||||
|
gpg-connect-agent reloadagent /bye
|
||||||
|
|
||||||
- name: Publish to Maven Central Repo
|
- name: Publish to Maven Central Repo
|
||||||
uses: samuelmeuli/action-maven-publish@v1
|
uses: samuelmeuli/action-maven-publish@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user