mirror of
https://github.com/cloudstack-llc/msty-studio-docs.git
synced 2026-07-25 20:56:00 -04:00
43 lines
997 B
YAML
43 lines
997 B
YAML
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 }}
|