Skip to content

update admin github action #218

update admin github action

update admin github action #218

Workflow file for this run

name: bbs-go-admin
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
# cache-dependency-path: admin/pnpm-lock.yaml
- name: Install dependencies
working-directory: ./admin
run: |
pnpm install
- name: Build
working-directory: ./admin
run: |
pnpm build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./admin/dist
cname: admin.bbs-go.com