From c69840c5e9d964ca2905ac6663f95945ee07c2a4 Mon Sep 17 00:00:00 2001 From: sue Date: Wed, 3 Jan 2024 18:34:43 +0900 Subject: [PATCH 1/4] =?UTF-8?q?Deploy:=20yaml=20=ED=8C=8C=EC=9D=BC=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/preview.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 72421852..95fcdf83 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -24,3 +24,5 @@ jobs: run: vercel build --token=${{ secrets.VERCEL_TOKEN }} - name: Deploy Project Artifacts to Vercel run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} + - name: Alias Deployment to Custom Domain + run: vercel alias --token=${{ secrets.VERCEL_TOKEN }} https://weplanplans-dev.vercel.app/ From b567d2a51138e23de7ebc89c66d720730efba587 Mon Sep 17 00:00:00 2001 From: sue Date: Wed, 3 Jan 2024 18:38:50 +0900 Subject: [PATCH 2/4] =?UTF-8?q?Deploy:=20yaml=20=ED=8C=8C=EC=9D=BC=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/preview.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 95fcdf83..a742f43e 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -25,4 +25,4 @@ jobs: - name: Deploy Project Artifacts to Vercel run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} - name: Alias Deployment to Custom Domain - run: vercel alias --token=${{ secrets.VERCEL_TOKEN }} https://weplanplans-dev.vercel.app/ + run: vercel alias [https://weplanplans-dev.vercel.app/] your-custom-domain.com --token=${{ secrets.VERCEL_TOKEN }} From b26721f857bb72ff6fbcac7af5cc53e2197949e1 Mon Sep 17 00:00:00 2001 From: sue Date: Wed, 3 Jan 2024 18:41:21 +0900 Subject: [PATCH 3/4] =?UTF-8?q?Deploy:=20yaml=20=ED=8C=8C=EC=9D=BC=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/preview.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index a742f43e..edf81df2 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -25,4 +25,4 @@ jobs: - name: Deploy Project Artifacts to Vercel run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} - name: Alias Deployment to Custom Domain - run: vercel alias [https://weplanplans-dev.vercel.app/] your-custom-domain.com --token=${{ secrets.VERCEL_TOKEN }} + run: vercel alias https://weplanplans-dev.vercel.app/ your-custom-domain.com --token=${{ secrets.VERCEL_TOKEN }} From 0871b00dfafd22d6717f895b50e190d013954d98 Mon Sep 17 00:00:00 2001 From: sue Date: Wed, 3 Jan 2024 18:43:20 +0900 Subject: [PATCH 4/4] =?UTF-8?q?Deploy:=20yaml=20=ED=8C=8C=EC=9D=BC=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/preview.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index edf81df2..498e78df 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -23,6 +23,9 @@ jobs: - name: Build Project Artifacts run: vercel build --token=${{ secrets.VERCEL_TOKEN }} - name: Deploy Project Artifacts to Vercel - run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} + 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 Custom Domain - run: vercel alias https://weplanplans-dev.vercel.app/ your-custom-domain.com --token=${{ secrets.VERCEL_TOKEN }} + run: vercel alias ${{ steps.deploy.outputs.url }} https://weplanplans-dev.vercel.app/ --token=${{ secrets.VERCEL_TOKEN }}