Skip to content

Commit d9fdb20

Browse files
Update deployment command in CI workflow to use 'pre' for non-release events
1 parent e47337b commit d9fdb20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
if [[ "${{ github.event_name }}" == "release" ]]; then
2828
DEPLOY_URL=$(vercel deploy --prod --token ${{ secrets.VERCEL_TOKEN_MY_PROJECT }} | tail -1)
2929
else
30-
DEPLOY_URL=$(vercel deploy --staging --token ${{ secrets.VERCEL_TOKEN_MY_PROJECT }} | tail -1)
30+
DEPLOY_URL=$(vercel deploy --pre --token ${{ secrets.VERCEL_TOKEN_MY_PROJECT }} | tail -1)
3131
fi
3232
echo "DEPLOYMENT_URL=${DEPLOY_URL}" >> $GITHUB_ENV
3333
echo "Deployed to: $DEPLOY_URL"

0 commit comments

Comments
 (0)