Skip to content

Commit

Permalink
ci: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rndquu committed Sep 25, 2024
1 parent 91b0482 commit 2ca32e8
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/cloudflare-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,6 @@ yarn add wrangler --ignore-scripts
output=$(yarn wrangler pages deploy "$STATICS_DIRECTORY" --project-name "$REPOSITORY_NAME" --branch "$CURRENT_BRANCH" --commit-dirty=true)
output="${output//$'\n'/ }"
# Extracting URL from output only
url=$(echo "$output" | grep -o 'https://[^ ]*' | sed 's/ //g')

# debug
echo "===output==="
echo $output
echo "===url==="
echo $url

url=$(echo "$output" | grep -o 'https://[^ ]*' | sed 's/ //g' | head -n 1)
echo "DEPLOYMENT_OUTPUT=$output" >> "$GITHUB_ENV"
echo "DEPLOYMENT_URL=$url" >> "$GITHUB_ENV"

0 comments on commit 2ca32e8

Please sign in to comment.