From c3808c034bb704980398f7866a4b2a3182ea5aaf Mon Sep 17 00:00:00 2001 From: zeaslity Date: Tue, 22 Nov 2022 14:22:24 +0800 Subject: [PATCH] test github action --- .github/workflows/build-push-docker.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-push-docker.yml b/.github/workflows/build-push-docker.yml index 441d435..4c797f6 100644 --- a/.github/workflows/build-push-docker.yml +++ b/.github/workflows/build-push-docker.yml @@ -10,15 +10,14 @@ on: # tags: # tags 更新时触发 workflow # - 'v*' pull_request: - branches: [ main ] + branches: [ main ] + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: jobs: - build: + build-and-deploy: runs-on: ubuntu-latest - permissions: - contents: read - packages: write steps: - uses: actions/checkout@v3 @@ -29,6 +28,7 @@ jobs: distribution: 'temurin' server-id: github # Value of the distributionManagement/repository/id field of the pom.xml settings-path: ${{ github.workspace }} # location for the settings.xml file + cache: maven - name: Build Maven run: mvn -B -DskipTests=true package --file pom.xml && \