diff --git a/.github/workflows/deploy-to-cloudflare.yml b/.github/workflows/deploy-to-cloudflare.yml index d01773c..f1e0f24 100644 --- a/.github/workflows/deploy-to-cloudflare.yml +++ b/.github/workflows/deploy-to-cloudflare.yml @@ -66,14 +66,8 @@ jobs: hugo --minify --gc -D --baseUrl 'https://drafts.msfjarvis.dev/' - name: Publish to Cloudflare Workers Sites - run: | - echo "prefix = \"${HOME}\"" > ~/.npmrc - npm install -g @cloudflare/wrangler - mkdir -p ~/.wrangler/config/ - echo "api_token=\"${CF_API_TOKEN}\"" > ~/.wrangler/config/default.toml - ~/bin/wrangler publish + uses: cloudflare/wrangler-action@1.3.0 + with: + apiToken: ${{ secrets.CF_API_TOKEN }} env: - SECRETS_ENC_KEY: ${{ secrets.SECRETS_ENC_KEY }} - CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }} CF_ZONE_ID: ${{ secrets.CF_ZONE_ID }} - CF_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}