diff --git a/.github/workflows/itcast-build-and-deploy.yml b/.github/workflows/itcast-build-and-deploy.yml index 2a8d61ea..c90fb267 100644 --- a/.github/workflows/itcast-build-and-deploy.yml +++ b/.github/workflows/itcast-build-and-deploy.yml @@ -19,6 +19,14 @@ jobs: - name: Checkout code uses: actions/checkout@v3 + - name: Download build artifact + uses: actions/download-artifact@v3 + with: + name: build-results + + - name: Debug workflow_run event + run: echo "${{ toJson(github.event) }}" + - name: Set up JDK 17 uses: actions/setup-java@v3 with: diff --git a/.github/workflows/itcast-build-and-test.yml b/.github/workflows/itcast-build-and-test.yml index d917a881..9a5b6293 100644 --- a/.github/workflows/itcast-build-and-test.yml +++ b/.github/workflows/itcast-build-and-test.yml @@ -51,4 +51,10 @@ jobs: - name: Tear down Docker Compose if: always() - run: docker-compose down \ No newline at end of file + run: docker-compose down + + - name: Upload build artifact + uses: actions/upload-artifact@v3 + with: + name: build-results + path: build/libs/*.jar \ No newline at end of file