diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index fc9420ca..72421852 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -23,9 +23,4 @@ jobs: - name: Build Project Artifacts run: vercel build --token=${{ secrets.VERCEL_TOKEN }} - name: Deploy Project Artifacts to Vercel - id: deploy - run: | - DEPLOY_URL=$(vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} | grep -o 'https://[^ ]*') - echo "::set-output name=url::$DEPLOY_URL" - - name: Alias Deployment to Fixed Domain - run: vercel alias ${{ steps.deploy.outputs.url }} weplanplans-dev.vercel.app --token=${{ secrets.VERCEL_TOKEN }} + run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} diff --git a/.github/workflows/production.yaml b/.github/workflows/production.yaml index fff08a6c..0f4bf1d7 100644 --- a/.github/workflows/production.yaml +++ b/.github/workflows/production.yaml @@ -14,9 +14,10 @@ jobs: - name: Install Vercel CLI run: npm install --global vercel@latest - name: Pull Vercel Environment Information - run: vercel pull --yes --environment=production --token=${{ - secrets.VERCEL_TOKEN }} + run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} - name: Build Project Artifacts run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} - name: Deploy Project Artifacts to Vercel run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} + - name: Set Fixed Domain Alias + run: vercel alias set https://weplanplans-dev.vercel.app/ --token=${{ secrets.VERCEL_TOKEN }}