Skip to content

feat: SSG & CI support #1

feat: SSG & CI support

feat: SSG & CI support #1

Workflow file for this run

name: Build and Upload to CDN
on:
push:
branches:
- master
jobs:
build-and-upload:
env:
CDN_URL: ${{ secrets.CDN_URL }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: 'true'
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: pnpm/[email protected]
with:
version: 8.6.3
- run: pnpm i --frozen-lockfile
- run: pnpm run build && rm dist/ssr-manifest.json
- name: Upload to COS
uses: zkqiang/[email protected]
with:
args: upload -r ./dist/ homepage
secret_id: ${{ secrets.COS_SECRET_ID }}
secret_key: ${{ secrets.COS_SECRET_KEY }}
bucket: ${{ secrets.COS_BUCKET }}
region: ${{ secrets.COS_REGION }}