Skip to content

Commit

Permalink
Merge pull request #3917 from sungaomeng/main
Browse files Browse the repository at this point in the history
fix: cicd, remove workflow_dispatch
  • Loading branch information
fred-bf authored Jan 25, 2024
2 parents ca08062 + 148c32a commit 1c73c6c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/deploy_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
types:
- opened
- synchronize
workflow_dispatch:

env:
VERCEL_TEAM: ${{ secrets.VERCEL_TEAM }}
Expand All @@ -24,8 +23,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.branchName }}

- name: Extract branch name
shell: bash
Expand Down Expand Up @@ -70,7 +67,6 @@ jobs:
vercel deploy --prebuilt --archive=tgz --token=${VERCEL_TOKEN} --meta base_hash=${{ env.META_TAG }}
DEFAULT_URL=$(vercel ls --token=${VERCEL_TOKEN} --meta base_hash=${{ env.META_TAG }})
echo "preview URL:${DEFAULT_URL} , alias URL:${{ steps.set_env.outputs.VERCEL_ALIAS_DOMAIN }}"
ALIAS_URL=$(vercel alias set ${DEFAULT_URL} ${{ steps.set_env.outputs.VERCEL_ALIAS_DOMAIN }} --token=${VERCEL_TOKEN} --scope ${VERCEL_TEAM}| awk '{print $3}')
echo "New preview URL: ${DEFAULT_URL}"
Expand Down

0 comments on commit 1c73c6c

Please sign in to comment.