rp4428
rp4428
CDCloudflare Developers
Created by rp4428 on 2/9/2024 in #pages-help
Branch name preview aliases not being created
Hi! I'm running a github actions CI pipeline to create cloudflare preview deployments for every pull request using https://github.com/cloudflare/pages-action. https://developers.cloudflare.com/pages/configuration/preview-deployments/#preview-aliases mentions that preview aliases should be created automatically with the format <branch>.<project>.pages.dev. However I'm not seeing any preview aliases being created except for head.<project>.pages.dev. Otherwise the preview deployments are working fine and are accessible at <hash>.<project>.pages.dev. Could anyone help me figure out why the branch name preview aliases are not being created? Snippet from my github actions workflow file:
- name: Publish preview deploy
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ...
directory: ...
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
- name: Publish preview deploy
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ...
directory: ...
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
3 replies