From 368734333da9aec8e92e00315939209dca873b95 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Thu, 2 Nov 2023 17:08:27 +0000 Subject: [PATCH] ci: properly build dev-app for automatic deploy The deploy script seems rather legacy and also doesn't ensure that the dist directory is actually present. We can simplify the logic and potentially delete the script in the future. --- .github/workflows/deploy-dev-app-main-push.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-dev-app-main-push.yml b/.github/workflows/deploy-dev-app-main-push.yml index e5f832cbc5b4..be38a204d647 100644 --- a/.github/workflows/deploy-dev-app-main-push.yml +++ b/.github/workflows/deploy-dev-app-main-push.yml @@ -24,7 +24,10 @@ jobs: - name: Setup Bazel RBE uses: angular/dev-infra/github-actions/bazel/configure-remote@fb30926790c6225d553b91a4818cab2fdde4fb4e - - run: yarn -s deploy-dev-app + - name: Building dev-app + run: | + yarn -s bazel build //src/dev-app:web_package --symlink_prefix=dist/ + cp -R dist/bin/src/dev-app/web_package dist/dev-app-web-pkg - name: Configure Firebase deploy target run: | @@ -39,6 +42,7 @@ jobs: repoToken: '' firebaseServiceAccount: '${{secrets.FIREBASE_PREVIEW_SERVICE_TOKEN}}' projectId: '${{env.PREVIEW_PROJECT}}' + entryPoint: './' channelId: '${{env.PREVIEW_CHANNEL}}' - name: Result