-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (34 loc) · 997 Bytes
/
deploy.yml
File metadata and controls
42 lines (34 loc) · 997 Bytes
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
name: Deploy to Cloudflare Pages
on:
workflow_dispatch:
push:
branches:
- prod
concurrency:
group: cloudflare-pages-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
runs-on: blacksmith-4vcpu-ubuntu-2404
name: Build and Deploy
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 22
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build
run: bun run build
- name: Deploy to Cloudflare Pages
run: npx wrangler pages deploy dist --project-name=msty-studio-docs --branch=prod --commit-hash=${{ github.sha }}
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}