Branch alias when using GitHub action

Hi all, I have a very simple github actions job that deploys the preview of my static site to cloudflare
publish-docs:
runs-on: ubuntu-22.04
needs: docs-test
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build docs
run: |
docs.sh

- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: <redacted>
projectName: learn
directory: site
# Optional: Enable this if you want to have GitHub Deployments triggered
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
publish-docs:
runs-on: ubuntu-22.04
needs: docs-test
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build docs
run: |
docs.sh

- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: <redacted>
projectName: learn
directory: site
# Optional: Enable this if you want to have GitHub Deployments triggered
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
The deployment works ok, but I miss the branch alias for the preview deployments the only alias I get for this deployment is head How do I enable branch name as an alias?
No description
1 Reply
Roman
RomanOP4mo ago
since pages-action seems to be discontinued in favor of a more generic wrangler action, it seems we need to address our concerns there instead https://github.com/cloudflare/wrangler-action/issues/274
GitHub
Feature request: Support GitHub deployments · Issue #274 · cloudfla...
I'm coming from the deprecated pages-action and one feature I really miss is being able to update the GitHub deployments environment.
Want results from more Discord servers?
Add your server