> For the complete documentation index, see [llms.txt](https://docs.exile.watch/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.exile.watch/projects/doryani/actions/deploy-webapp.md).

# Deploy webapp

Action designed to automate the deployment of web applications to Cloudflare Pages

<figure><img src="https://694473604-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOzA1rSlMPE3i2X5tlqgu%2Fuploads%2FZCdzczA729HO2CsFnhUE%2Fimage.png?alt=media&amp;token=3373666c-de2d-4ae5-985d-8c0be1fbeadd" alt="" width="200"><figcaption><p>exile.watch logo</p></figcaption></figure>

{% hint style="info" %}
This page covers [`deploy-webapp*`](https://github.com/exile-watch/doryani/tree/main/deploy-webapp) actions
{% endhint %}

## Usage

In `.github/workflows/deploy-webapp.yml` paste following snippet:

```yaml
name: "Deploy: @exile-watch / doryani"

on:
  workflow_dispatch:

jobs:
  deploy-webapp:
    runs-on: ubuntu-latest
    steps:
      - name: Deploy Crucible to Cloudflare Pages
        uses: exile-watch/doryani/deploy-webapp@main
        with:
          CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
          CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
          PROJECT_NAME: "project_name"
          ENV: "production"
          GH_TOKEN: ${{ secrets.GH_TOKEN }}
```
