Skip to content

Commit

Permalink
Update artifact steps in Web build worklfow (#3756)
Browse files Browse the repository at this point in the history
(cherry picked from commit 94cfa2d)
  • Loading branch information
mimartin12 committed Oct 12, 2022
1 parent 12179d4 commit 32eff32
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/build-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,15 @@ jobs:
working-directory: apps/web
run: npm run ${{ matrix.npm_command }}

- name: Package artifact
working-directory: apps/web
run: zip -r web-${{ env._VERSION }}-${{ matrix.name }}.zip build

- name: Upload ${{ matrix.name }} artifact
uses: actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535 # v3.0.0
with:
name: web-${{ env._VERSION }}-${{ matrix.name }}.zip
path: apps/web/build
path: apps/web/web-${{ env._VERSION }}-${{ matrix.name }}.zip
if-no-files-found: error

build-commercial-selfhost-image:
Expand Down Expand Up @@ -151,7 +155,11 @@ jobs:
uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741
with:
name: web-${{ env._VERSION }}-selfhosted-COMMERCIAL.zip
path: apps/web/build
path: apps/web

- name: Extract artifact
working-directory: apps/web
run: unzip web-${{ env._VERSION }}-selfhosted-COMMERCIAL.zip

- name: Build Docker image
working-directory: apps/web
Expand Down Expand Up @@ -257,8 +265,12 @@ jobs:
- name: Download cloud-QA artifact
uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741
with:
name: web-${{ env._VERSION }}-cloud-QA.zip
path: apps/web/build
name: web-${{ env._VERSION }}-${{ matrix.artifact_name }}.zip
path: apps/web

- name: Extract artifact
working-directory: apps/web
run: unzip web-${{ env._VERSION }}-${{ matrix.artifact_name }}.zip

- name: Build Docker image
working-directory: apps/web
Expand Down

0 comments on commit 32eff32

Please sign in to comment.