dev env pages deployment keeps going to production via GH actions
This example says the branch should deploy it to the correct location.
https://github.com/marketplace/actions/deploy-to-cloudflare-workers-with-wrangler#deploy-your-pages-site-production--preview
Here is the github actions deployment
- name: Publish
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages publish ".svelte-kit/cloudflare" --project-name=bananas
GitHub
Deploy to Cloudflare Workers with Wrangler - GitHub Marketplace
Deploy your Cloudflare Workers and Pages projects from GitHub using Wrangler
2 Replies
setting the branch fixed this issue. weirdly enough, i didn't have to do this before. not sure what changed.
command: pages publish ".svelte-kit/cloudflare" --branch=dev --project-name=bananas
glad you managed to fix it 😄