41 lines
987 B
YAML
41 lines
987 B
YAML
name: Deploy Blog
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
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
|
|
env:
|
|
HTTP_PROXY: ${{ env.HTTP_PROXY }}
|
|
HTTPS_PROXY: ${{ env.HTTPS_PROXY }}
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v4
|
|
env:
|
|
HTTP_PROXY: ${{ env.HTTP_PROXY }}
|
|
HTTPS_PROXY: ${{ env.HTTPS_PROXY }}
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install
|
|
env:
|
|
HTTP_PROXY: ${{ env.HTTP_PROXY }}
|
|
HTTPS_PROXY: ${{ env.HTTPS_PROXY }}
|
|
|
|
- name: Build
|
|
run: pnpm run docs:build
|
|
|
|
- name: Show build output
|
|
run: ls -la docs/.vuepress/dist |