From adf26baf596e21338d303678fc47d18e5ba14b82 Mon Sep 17 00:00:00 2001 From: carm Date: Tue, 25 Feb 2025 01:44:28 +0800 Subject: [PATCH] ci(deploy): Cancel javadoc deployment --- .github/workflows/deploy.yml | 48 +----------------------------------- 1 file changed, 1 insertion(+), 47 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index fc8c655..5ba97f7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -29,59 +29,13 @@ jobs: 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" + - name: "Maven Deploy" 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: | - rm -rf docs - mkdir -vp docs - cp -vrf core/target/reports/apidocs/* docs/ - cp -vrf .doc/JAVADOC-README.md docs/README.md - - - name: "Generate the Javadoc sitemap" - id: sitemap - uses: cicirello/generate-sitemap@v1 - with: - base-url-path: https://CarmJos.github.io/EasyConfiguration - path-to-root: docs - - - name: "Output stats" - run: | - echo "sitemap-path = ${{ steps.sitemap.outputs.sitemap-path }}" - echo "url-count = ${{ steps.sitemap.outputs.url-count }}" - echo "excluded-count = ${{ steps.sitemap.outputs.excluded-count }}" - - - name: "Configure Git" - env: - DEPLOY_PRI: ${{secrets.DEPLOY_PRI}} - run: | - sudo timedatectl set-timezone "Asia/Shanghai" - mkdir -p ~/.ssh/ - echo "$DEPLOY_PRI" > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - ssh-keyscan github.com >> ~/.ssh/known_hosts - git config --global user.name 'CarmJos' - git config --global user.email 'carm@carm.cc' - - - name: "Commit documentations" - run: | - cd docs - git init - git remote add origin git@github.com:CarmJos/EasyConfiguration.git - git checkout -b gh-pages - git add -A - git commit -m "API Document generated." - - - name: "Push javadocs" - run: | - cd docs - git push origin HEAD:gh-pages --force - central-deploy: name: "Deploy Project (Central Repository)" runs-on: ubuntu-latest