File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy to Cloudflare Pages
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ workflow_dispatch :
8+
9+ jobs :
10+ deploy :
11+ runs-on : ubuntu-latest
12+ permissions :
13+ contents : read
14+ deployments : write
15+ name : Build and Deploy
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v4
19+
20+ - name : Set up Node.js
21+ uses : actions/setup-node@v4
22+ with :
23+ node-version : 20
24+ cache : ' npm'
25+
26+ - name : Install dependencies
27+ run : npm ci
28+
29+ - name : Build
30+ run : npm run build
31+
32+ - name : Deploy to Cloudflare Pages
33+ uses : cloudflare/wrangler-action@v3
34+ with :
35+ apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
36+ accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
37+ command : pages deploy dist --project-name=logicmap
You can’t perform that action at this time.
0 commit comments