Skip to content

Commit

Permalink
docs:add release GitHub Action. (#1006)
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyeBeFreeman authored May 19, 2023
1 parent d1576f7 commit 88de433
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
- [Feature: add AssemblyFlow to support tsf.](https://github.com/Tencent/spring-cloud-tencent/pull/993)
- [Refactoring: Refactor Circuitbreaker ut.](https://github.com/Tencent/spring-cloud-tencent/pull/997)
- [feat:refactor SDKContext as static.](https://github.com/Tencent/spring-cloud-tencent/pull/1001)
- [docs:add release GitHub Action.](https://github.com/Tencent/spring-cloud-tencent/pull/1006)
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,9 @@ public String getName() {
public void setSDKContext(SDKContext sdkContext) {

}

@Override
public void destroy() {

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,10 @@ public static void innerDestroy() {
assemblyAPI = null;
}

sdkContext.destroy();
sdkContext = null;
if (Objects.nonNull(sdkContext)) {
sdkContext.destroy();
sdkContext = null;
}
LOG.info("Polaris SDK context is destroyed.");
}
catch (Throwable throwable) {
Expand Down

0 comments on commit 88de433

Please sign in to comment.