[debug]: 将 compiler-sfc 加入 devDep #6
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 and Deploy herbiv | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-and-deploy: | |
# 运行环境 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
run: yarn install | |
- name: Install vue-cli-service | |
run: npm install -g @vue/cli-service | |
- name: vue-cli-service build | |
run: vue-cli-service build | |
- name: Deploy | |
uses: cross-the-world/scp-pipeline@master | |
env: | |
WELCOME: "ssh scp ssh pipelines" | |
LASTSSH: "拷贝完成" | |
with: | |
host: ${{ secrets.USER_HOST }} | |
user: ${{ secrets.USER_NAME }} | |
pass: ${{ secrets.HUAWEI_PASS }} | |
connect_timeout: 10s | |
local: './dist/*' | |
remote: /www/herbiv-vue/ |