From 0986ffa7f1557c3f158170ba7fe3a50b053497c8 Mon Sep 17 00:00:00 2001 From: carm Date: Tue, 25 Jan 2022 23:39:26 +0800 Subject: [PATCH] =?UTF-8?q?[v0.3.0]=20=E5=81=9C=E7=94=A8=20SonarCloud?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 3 +++ .github/workflows/sonar-analyze.yml | 36 ----------------------------- 2 files changed, 3 insertions(+), 36 deletions(-) delete mode 100644 .github/workflows/sonar-analyze.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 158b740..631dc14 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -26,12 +26,15 @@ jobs: server-id: github server-username: MAVEN_USERNAME server-password: MAVEN_TOKEN + gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import + gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase - name: "Maven Deploy With Javadoc" run: mvn -B -Pgithub deploy --file pom.xml -DskipTests env: MAVEN_USERNAME: ${{ github.repository_owner }} MAVEN_TOKEN: ${{secrets.GITHUB_TOKEN}} + MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} - name: "Copy Javadoc to Location" run: | diff --git a/.github/workflows/sonar-analyze.yml b/.github/workflows/sonar-analyze.yml deleted file mode 100644 index 3fb6ebf..0000000 --- a/.github/workflows/sonar-analyze.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: "Sonar Analyze" -on: - push: - branches: - - master - pull_request: - types: [ opened, synchronize, reopened ] -jobs: - build: - name: Build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - - name: Set up JDK 11 - uses: actions/setup-java@v1 - with: - java-version: 11 - - name: Cache SonarCloud packages - uses: actions/cache@v1 - with: - path: ~/.sonar/cache - key: ${{ runner.os }}-sonar - restore-keys: ${{ runner.os }}-sonar - - name: Cache Maven packages - uses: actions/cache@v1 - with: - path: ~/.m2 - key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} - restore-keys: ${{ runner.os }}-m2 - - name: Build and analyze - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=CarmJos_EasySQL