diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bb52c4d96..76c6ce7a1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -57,25 +57,26 @@ jobs: - name: Check apps changed since the last successful commit run: | if [ "${{ env.NX_HEAD }}" == "ffffff" ]; then - changedAppsCommitFilter='' + changedAppsCommitFilter='none' else - changedAppsCommitFilter=" -F '[${{ env.NX_HEAD }}]'" + changedAppsCommitFilter="'[${{ env.NX_HEAD }}]'" fi + changedApps=`pnpm -r -F $changedAppsCommitFilter ls --depth -1` echo "Changed apps: $changedApps" - name: Install dependencies run: | - pnpm -r $changedAppsCommitFilter i + pnpm -r -F $changedAppsCommitFilter i - name: Build apps run: | pnpm i -g turbo export NODE_ENV=production - turbo $changedAppsCommitFilter -F '!~dumili' -F '!~dumili-api' build + turbo -F $changedAppsCommitFilter -F '!~dumili' -F '!~dumili-api' build - name: Retrieve pre-build files run: | - turbo $changedAppsCommitFilter -F '!~ci' -F '!~dumili' -F '!~dumili-api' prod:transfer-files-pre + turbo -F $changedAppsCommitFilter -F '!~ci' -F '!~dumili' -F '!~dumili-api' prod:transfer-files-pre - uses: docker/setup-buildx-action@v3 @@ -83,12 +84,12 @@ jobs: env: GITHUB_TOKEN: ${{ github.token }} run: | - turbo $changedAppsCommitFilter -F '!~ci' -F '!~dumili' -F '!~dumili-api' prod:build-docker + turbo -F $changedAppsCommitFilter -F '!~ci' -F '!~dumili' -F '!~dumili-api' prod:build-docker - name: Send post-build files run: | - turbo $changedAppsCommitFilter -F '!~ci' -F '!~dumili' -F '!~dumili-api' prod:transfer-files-post + turbo -F $changedAppsCommitFilter -F '!~ci' -F '!~dumili' -F '!~dumili-api' prod:transfer-files-post - name: Deploy run: | - turbo $changedAppsCommitFilter -F '!~ci' -F '!~dumili' -F '!~dumili-api' prod:deploy + turbo -F $changedAppsCommitFilter -F '!~ci' -F '!~dumili' -F '!~dumili-api' prod:deploy