Files
blog-srv/.github/workflows/deploy.yml
yinxiaolong 704f570571
Some checks failed
Deploy Blog / build (push) Failing after 5s
ci: 更新代理配置地址
2026-07-23 18:31:20 +08:00

36 lines
783 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: Setup git proxy
run: |
git config --global http.proxy ${{ env.HTTP_PROXY }}
git config --global https.proxy ${{ env.HTTPS_PROXY }}
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm run docs:build
- name: Show build output
run: ls -la docs/.vuepress/dist