Skip to content

Commit

Permalink
chore: optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4007 committed Jan 22, 2024
1 parent 733c989 commit 04fa789
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/cloudflare-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
deploy-to-cloudflare:
# Only push and merged pull requests
# Only push and merged pull request events
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
runs-on: ubuntu-22.04
permissions:
Expand All @@ -21,7 +21,10 @@ jobs:
path: "./"

- name: Deploy to Cloudflare
run: ./cloudflare-deploy-action/cloudflare-deploy.sh ${{ github.repository }} ${{ github.event.repository.default_branch }} "static"
uses: cloudflare/cloudflare-deploy-action@main
# run: ./cloudflare-deploy-action/cloudflare-deploy.sh ${{ github.repository }} ${{ github.event.repository.default_branch }} "static"
with:
args: ${{ github.repository }} ${{ github.event.repository.default_branch }} "static"
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
Expand Down

0 comments on commit 04fa789

Please sign in to comment.