Skip to content

chore: 빌드 스텝 추가 #7

chore: 빌드 스텝 추가

chore: 빌드 스텝 추가 #7

Workflow file for this run

name: Cloudflare CD
on:
push:
branches:
- 'deploy/admin'
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Publish to Cloudflare Pages
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install and Build
run: |
cd admin
npm install
npm run build
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: inu-appcenter-admin
directory: build
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
branch: deploy/admin
workingDirectory: admin
wranglerVersion: '3'