36 lines
733 B
YAML
36 lines
733 B
YAML
name: Deploy Blog
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
HTTP_PROXY: http://10.255.0.1:7890
|
|
HTTPS_PROXY: http://10.255.0.1:7890
|
|
http_proxy: http://10.255.0.1:7890
|
|
https_proxy: http://10.255.0.1:7890
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v4
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
cache: pnpm
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install
|
|
|
|
- name: Build
|
|
run: pnpm run docs:build
|
|
|
|
- name: Show build output
|
|
run: ls -la docs/.vuepress/dist |