Preview deploy webapp
Action designed to automate the process of building and deploying a preview version of a webapp to Cloudflare Pages, enabling users to test and evaluate changes before the final release

Usage
In .github/workflows/preview-deploy-webapp.yml
paste following snippet:
name: "Preview deploy: @exile-watch / doryani"
on:
pull_request_target:
types:
- labeled
jobs:
preview-deploy-webapp:
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'preview-deploy')
steps:
- name: Preview deploy Crucible to Cloudflare Pages
uses: exile-watch/doryani/preview-deploy-webapp@main
with:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
PROJECT_NAME: "crucible"
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_ACTOR: ${{ github.actor }}
prRef: ${{ github.event.pull_request.head.ref }}
Sub-actions
Action code
Name
Update status comment on success
Once the webapp is deployed, this action updates the status comment created in 00
Update status comment on failure
If 00
or 01
action fails, this action updates the status created in 00
Last updated
Was this helpful?