-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.15 KB
/
cloudflare-deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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'