From 105fde171f826935347be6998b28ddd2cbcf01bf Mon Sep 17 00:00:00 2001 From: rory Date: Thu, 25 Jul 2024 10:57:12 -0700 Subject: [PATCH] Upload web build artifacts --- .github/workflows/platformDeploy.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/platformDeploy.yml b/.github/workflows/platformDeploy.yml index ee8685d27cb7..43605d602d99 100644 --- a/.github/workflows/platformDeploy.yml +++ b/.github/workflows/platformDeploy.yml @@ -353,6 +353,21 @@ jobs: env: CF_API_KEY: ${{ secrets.CLOUDFLARE_TOKEN }} + - name: Upload web build to GitHub artifacts + uses: actions/upload-artifact@v4 + with: + name: web-build + path: dist + + - name: Upload web build to GitHub Release + if: ${{ fromJSON(env.SHOULD_DEPLOY_PRODUCTION) }} + run: + tar -czvf webBuild.tar.gz dist + zip -r webBuild.zip dist + gh release upload ${{ github.event.release.tag_name }} webBuild.tar.gz webBuild.zip + env: + GITHUB_TOKEN: ${{ github.token }} + postSlackMessageOnFailure: name: Post a Slack message when any platform fails to build or deploy runs-on: ubuntu-latest