Skip to content

Commit

Permalink
Merge pull request #31 from glukki/update-deploy-action
Browse files Browse the repository at this point in the history
Let action run `wrangler deploy` natively; Use default action output
  • Loading branch information
glukki authored Jun 5, 2024
2 parents 79d45cf + 33c165b commit 3c47215
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,9 @@ jobs:
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
command: --version
postCommands: |
output="$(npx wrangler deploy)"
echo "$output"
url=$(echo "$output" | grep -Ei '^\s*?https' | tail -n1)
echo "url=$url" >> $GITHUB_OUTPUT
command: deploy

- name: Check status
uses: srt32/uptime@master
with:
url-to-hit: ${{ steps.deploy.outputs.url }}/status
url-to-hit: ${{ steps.deploy.outputs.deployment-url }}/status

0 comments on commit 3c47215

Please sign in to comment.