fix:首页添加 ai 文字 #154
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: gin-vue-admin build test | |
on: | |
push: | |
branches: | |
- "*" | |
jobs: | |
frontend: | |
name: Frontend build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: ['16.x'] | |
steps: | |
- name: Check out branch | |
uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Build test | |
run: | | |
npm install | |
npm run docs:build | |
- name: restart | |
env: | |
KEY: ${{ secrets.KEY }} | |
HOST: ${{ secrets.HOST }} | |
USER: ${{ secrets.USER }} | |
PROT: ${{ secrets.PROT }} | |
MKDIR: ${{ secrets.MKDIR }} | |
run: | | |
mkdir -p ~/.ssh/ && echo "$KEY" > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa | |
ssh-keyscan github.com >> ~/.ssh/known_hosts | |
scp -P ${PROT} -o StrictHostKeyChecking=no -r docs/.vitepress/dist/* ${USER}@${HOST}:${MKDIR}build/ |