Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jankremlacek committed Sep 23, 2022
1 parent c3f8094 commit b1cb4be
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b1cb4be

Please sign in to comment.