Skip to content

Commit

Permalink
Showing 3 changed files with 18 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy-action.yml
Original file line number Diff line number Diff line change
@@ -60,10 +60,10 @@ jobs:
environment="--environment=production"
prodRun="--prod"
fi
[[ "${{ inputs.environment }}" != "production" && !contains("${{ inputs.branch }}", "dev") ]] && environment="--environment=preview"
echo contains("${{ inputs.branch }}", "dev")
[[ "${{ inputs.environment }}" != "production" && !contains(inputs.branch, "dev") ]] && environment="--environment=preview"
echo $environment
echo $prodRun
vercel pull --yes $environment --token=${{ secrets.vercel_token }}
vercel build $prodRun --token=${{ secrets.vercel_token }}
Empty file added deploy
Empty file.
15 changes: 15 additions & 0 deletions script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# !/bin/bash
environment=""
prodRun=""
if [[ "${{ inputs.environment }}" == "production" ]]; then
environment="--environment=production"
prodRun="--prod"
fi
[[ "${{ inputs.environment }}" != "production" && !contains("${{ inputs.branch }}", "dev") ]] && environment="--environment=preview"

echo contains("${{ inputs.branch }}", "dev")


vercel pull --yes $environment --token=${{ secrets.vercel_token }}
vercel build $prodRun --token=${{ secrets.vercel_token }}
vercel deploy --prebuilt $prodRun --token=${{ secrets.vercel_token }} -m githubCommitRef=${{ inputs.branch }}

0 comments on commit 52c8964

Please sign in to comment.