Merge pull request #28 from WXies-Team/dependabot/npm_and_yarn/types/… #62
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |