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
|
||||
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
|
||||
- name: Execute remote SSH commands using password
|
||||
uses: appleboy/ssh-action@v1
|
||||
with:
|
||||
host: ${{ secrets.HOST }}
|
||||
username: ${{ secrets.USERNAME }}
|
||||
password: ${{ secrets.PASSWORD }}
|
||||
port: ${{ secrets.PORT }}
|
||||
script: ls -la /
|
||||
Reference in New Issue
Block a user