From b1cb4be2d6cc63f25d8a93e71049619fcd80f7aa Mon Sep 17 00:00:00 2001 From: Jan Kremlacek <36951+jankremlacek@users.noreply.github.com> Date: Fri, 23 Sep 2022 20:57:32 +0200 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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