From 2b1e16410d933ef44295f905c9bbc9d9997d5b2f Mon Sep 17 00:00:00 2001 From: IS2511 Date: Sun, 3 Nov 2024 03:23:18 +0300 Subject: [PATCH] feat(ci): automating CF Pages deployments --- .github/workflows/cf-pages-deploy.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/cf-pages-deploy.yml diff --git a/.github/workflows/cf-pages-deploy.yml b/.github/workflows/cf-pages-deploy.yml new file mode 100644 index 0000000..5b58828 --- /dev/null +++ b/.github/workflows/cf-pages-deploy.yml @@ -0,0 +1,18 @@ +on: + push: + branches: + - main + - stage + +jobs: + deploy: + runs-on: ubuntu-latest + name: Deploy to CF Pages + steps: + - uses: actions/checkout@v4 + - name: Deploy + uses: cloudflare/wrangler-action@v3 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + command: pages deploy ./ --project-name="chatis-v2" --branch="${{ github.ref_name }}"