This commit is contained in:
36
.github/workflows/deploy.yml
vendored
36
.github/workflows/deploy.yml
vendored
@@ -11,31 +11,11 @@ jobs:
|
|||||||
HTTP_PROXY: http://10.255.0.1:7890
|
HTTP_PROXY: http://10.255.0.1:7890
|
||||||
HTTPS_PROXY: http://10.255.0.1:7890
|
HTTPS_PROXY: http://10.255.0.1:7890
|
||||||
steps:
|
steps:
|
||||||
- name: Setup git proxy
|
- name: Execute remote SSH commands using password
|
||||||
run: |
|
uses: appleboy/ssh-action@v1
|
||||||
git config --global http.proxy ${{ env.HTTP_PROXY }}
|
with:
|
||||||
git config --global https.proxy ${{ env.HTTPS_PROXY }}
|
host: ${{ secrets.HOST }}
|
||||||
|
username: ${{ secrets.USERNAME }}
|
||||||
- name: Checkout
|
password: ${{ secrets.PASSWORD }}
|
||||||
uses: actions/checkout@v4
|
port: ${{ secrets.PORT }}
|
||||||
env:
|
script: ls -la /
|
||||||
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
|
|
||||||
Reference in New Issue
Block a user