Skip to content

Merge pull request #24 from WXies-Team/dependabot/npm_and_yarn/vue-3.… #58

Merge pull request #24 from WXies-Team/dependabot/npm_and_yarn/vue-3.…

Merge pull request #24 from WXies-Team/dependabot/npm_and_yarn/vue-3.… #58

Workflow file for this run

name: Build & Push
on:
push:
branches:
- main
workflow_dispatch:
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 'latest'
- name: Install dependence
run: |
npm install
npm audit fix
- name: Bulid Vitepress
run: npm run build
- name: Configure SSH keys
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.WXIES114514 }}
- name: Push to server
run: rsync -avz --delete -e "ssh -o StrictHostKeyChecking=no" docs/dist/* root@autopull.wxies.cn:/www/wwwroot/doc.wxies.cn/