From 04fa78930b3f326a30ced13d407f896a9c86e75c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=A2=E3=83=AC=E3=82=AF=E3=82=B5=E3=83=B3=E3=83=80?= =?UTF-8?q?=E3=83=BC=2Eeth?= Date: Mon, 22 Jan 2024 16:21:06 +0900 Subject: [PATCH] chore: optimizations --- .github/workflows/cloudflare-deploy.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cloudflare-deploy.yml b/.github/workflows/cloudflare-deploy.yml index 5d9c0059..b3613cb0 100644 --- a/.github/workflows/cloudflare-deploy.yml +++ b/.github/workflows/cloudflare-deploy.yml @@ -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: @@ -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 }}