diff --git a/.github/workflows/next-deploy.yml b/.github/workflows/next-deploy.yml index d829fc1f5..5641588b7 100644 --- a/.github/workflows/next-deploy.yml +++ b/.github/workflows/next-deploy.yml @@ -38,9 +38,8 @@ jobs: with: run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} id: deploy - - name: Set deployment alias - run: vercel alias set ${{ steps.deploy.outputs.stdout }} ${{ secrets.TEST_PREVIEW_DOMAIN }} --token=${{ secrets.VERCEL_TOKEN }} --scope=zaro - # - uses: mshick/add-pr-comment@v2 - # with: - # message: | - # Deployed to Vercel Preview: ${{ steps.deploy.outputs.stdout }} + - name: Set deployment aliases + run: | + for alias in $(echo ${{ secrets.ALIASES }} | tr "," "\n"); do + vercel alias set ${{ steps.deploy.outputs.stdout }} $alias --token=${{ secrets.VERCEL_TOKEN }} --scope=zaro + done diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 7fe5998b5..f03b80f8a 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -92,4 +92,7 @@ jobs: # - run: git checkout next scripts/githubActions.mjs - name: Set deployment alias if: ${{ steps.alias.outputs.alias != '' && steps.alias.outputs.alias != 'mcraft.fun' && steps.alias.outputs.alias != 's.mcraft.fun' }} - run: vercel alias set ${{ steps.deploy.outputs.stdout }} ${{ steps.alias.outputs.alias }} --token=${{ secrets.VERCEL_TOKEN }} --scope=zaro + run: | + for alias in $(echo ${{ steps.alias.outputs.alias }} | tr "," "\n"); do + vercel alias set ${{ steps.deploy.outputs.stdout }} $alias --token=${{ secrets.VERCEL_TOKEN }} --scope=zaro + done