Skip to content

Commit

Permalink
ci: 👷 adding deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmontes9 committed Dec 31, 2024
1 parent 52d1640 commit 8daab32
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Manual Deploy to Cloudflare Pages

on:
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install Wrangler CLI
run: npm install wrangler

- name: Install dependencies
run: npm ci

- name: Deploy to Cloudflare Pages
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_PROJECT_NAME: ${{ secrets.CLOUDFLARE_PROJECT_NAME }}
run: |
npx wrangler pages deploy --project-name=$CLOUDFLARE_PROJECT_NAME ./src --branch=master --commit-dirty=true

0 comments on commit 8daab32

Please sign in to comment.