diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2fb0475d8..5360eaa72 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -403,12 +403,24 @@ jobs: touch $STUB_OUTPUT/env/uid.env cd docker-stub; zip -r ../docker-stub.zip *; cd .. + - name: Make Docker stub checksum + if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/rc' || github.ref == 'refs/heads/hotfix-rc' + run: sha256sum docker-stub.zip > docker-stub-sha256.txt + - name: Upload Docker stub artifact if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/rc' || github.ref == 'refs/heads/hotfix-rc' uses: actions/upload-artifact@ee69f02b3dfdecd58bb31b4d133da38ba6fe3700 with: name: docker-stub.zip - path: ./docker-stub.zip + path: docker-stub.zip + if-no-files-found: error + + - name: Upload Docker stub checksum artifact + if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/rc' || github.ref == 'refs/heads/hotfix-rc' + uses: actions/upload-artifact@ee69f02b3dfdecd58bb31b4d133da38ba6fe3700 + with: + name: docker-stub-sha256.txt + path: docker-stub-sha256.txt if-no-files-found: error - name: Build Swagger @@ -433,7 +445,7 @@ jobs: uses: actions/upload-artifact@ee69f02b3dfdecd58bb31b4d133da38ba6fe3700 with: name: swagger.json - path: ./swagger.json + path: swagger.json if-no-files-found: error diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 668c7f79e..f98c7ab01 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -233,6 +233,7 @@ jobs: workflow_conclusion: success branch: ${{ needs.setup.outputs.branch-name }} artifacts: "docker-stub.zip, + docker-stub-sha256.txt, swagger.json" - name: Create release @@ -240,6 +241,7 @@ jobs: uses: ncipollo/release-action@40bb172bd05f266cf9ba4ff965cb61e9ee5f6d01 with: artifacts: 'docker-stub.zip, + docker-stub-sha256.txt, swagger.json' commit: ${{ github.sha }} tag: "v${{ needs.setup.outputs.release_version }}"