Skip to content
name: Deploy to GitHub Pages
on:
push:
branches:
- master
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: 📚 Git Checkout
uses: actions/checkout@v4
- name: 🐦 Setup Flutter
uses: actions/setup-node@v3
with:
node-version: 18
- name: 📦 Install Dependencies
run: npm install
- name: 🛠️ Build the application
run: npm run build
- name: ⬇️ Archive Production Artifact
uses: actions/upload-artifact@v4
with:
name: web-build
path: dist
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: 📚 Git Checkout
uses: actions/checkout@v4
- name: 📦 Download Artifact
uses: actions/download-artifact@v4
with:
name: web-build
path: dist
- name: 🚀 Deploy to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: 'burrito-dashboard'
directory: 'dist'