From 94a3fa018b066b3998bc42af651ba175866e3489 Mon Sep 17 00:00:00 2001 From: Jack Date: Sun, 17 Nov 2024 19:18:51 +0800 Subject: [PATCH] Self-review --- .github/workflows/ci-cd.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index e3c80cf..9638ada 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. --- -name: Template CI/CD +name: CI/CD "on": pull_request: @@ -40,7 +40,7 @@ jobs: run: mvn -B clean verify deploy-docs: - # needs: tests + needs: tests runs-on: ubuntu-latest steps: - name: Checkout Repository @@ -56,13 +56,13 @@ jobs: - name: Generate Javadoc run: mvn -B clean javadoc:javadoc - name: Move Javadoc into documentation directory - #if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/master' run: mv target/site/apidocs/ docs/build/apidocs/ - name: Load CNAME file - #if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/master' run: cp docs/CNAME docs/build - name: Deploy Documentation (including Javadoc) to GitHub Pages - #if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/master' uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }}