diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ed4569a..f063e78 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,11 +64,18 @@ jobs: run: | "${GITHUB_WORKSPACE}/bin/bazel" build //... + - name: Prepare the dist folder + run: | + mkdir -p "${GITHUB_WORKSPACE}/dist/" + cp "${GITHUB_WORKSPACE}/bazel-bin/services/a/service-a" "${GITHUB_WORKSPACE}/dist/" + cp "${GITHUB_WORKSPACE}/bazel-bin/services/b/service-b" "${GITHUB_WORKSPACE}/dist/" + ls "${GITHUB_WORKSPACE}/dist/" + - name: Compress run: | - tar czvf ${{matrix.name}}.tar.gz \ - --directory "${GITHUB_WORKSPACE}/bazel-bin/services/a" service-a \ - --directory "${GITHUB_WORKSPACE}/bazel-bin/services/b" service-b + tar czvf ${{matrix.name}}.tar.gz --directory "${GITHUB_WORKSPACE}/dist/" \ + service-a \ + service-b - name: Upload the build as an artifact uses: actions/upload-artifact@v3