docs:add release GitHub Action.

pull/1080/head
Haotian Zhang 2 years ago
parent 4981835215
commit d36d936590

@ -0,0 +1,27 @@
name: Release
on:
release:
types: [ published ]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
server-id: nexus-releases
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Publish package
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
run: |
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import;
mvn clean deploy -U -P release -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} -DskipTests

@ -7,3 +7,4 @@
- Refactoring: Refactor Circuitbreaker ut. - Refactoring: Refactor Circuitbreaker ut.
- refactor:refactor rpc enhancement. - refactor:refactor rpc enhancement.
- feat:refactor SDKContext as static. - feat:refactor SDKContext as static.
- docs:add release GitHub Action.

@ -111,8 +111,10 @@ public class PolarisSDKContextManager {
assemblyAPI = null; assemblyAPI = null;
} }
sdkContext.destroy(); if (Objects.nonNull(sdkContext)) {
sdkContext = null; sdkContext.destroy();
sdkContext = null;
}
LOG.info("Polaris SDK context is destroyed."); LOG.info("Polaris SDK context is destroyed.");
} }
catch (Throwable throwable) { catch (Throwable throwable) {

Loading…
Cancel
Save