mirror of
https://github.com/woodchen-ink/clash-and-dashboard.git
synced 2025-07-18 05:51:56 +08:00
31 lines
653 B
YAML
31 lines
653 B
YAML
name: Deploy
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Dashboard code
|
|
uses: actions/checkout@v2
|
|
- uses: pnpm/action-setup@v2
|
|
with:
|
|
version: latest
|
|
- name: Setup Nodejs
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '16.x'
|
|
cache: pnpm
|
|
- name: Install package and build
|
|
run: |
|
|
pnpm install
|
|
pnpm build
|
|
- name: Deploy
|
|
uses: crazy-max/ghaction-github-pages@v2
|
|
with:
|
|
target_branch: gh-pages
|
|
build_dir: dist
|
|
fqdn: clash.razord.top
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|