ci: update yml config

This commit is contained in:
2022-12-02 00:38:32 +08:00
parent 28f798df9d
commit 3dc44b8a34
3 changed files with 24 additions and 24 deletions

View File

@@ -9,4 +9,4 @@ updates:
directory: "/" # Location of package manifests
schedule:
interval: "monthly"
open-pull-requests-limit: 10
open-pull-requests-limit: 20

View File

@@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Sync to Gitee
uses: x-dr/sync-repo-to-gitee@master
env:
@@ -21,11 +21,11 @@ jobs:
github-repo: "git@github.com:xiaohai2271/blog-frontEnd.git"
# 注意替换为你的 Gitee 目标仓库地址
gitee-repo: "git@gitee.com:xiaohai2271/blog-frontEnd.git"
- name: Use Node.js 12.x
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: '12.x'
node-version: '16.x'
- run: npm install
- run: npm run lint && npm run build:prod
- run: cd dist/index/ && tar -cf index.tar ./* && mv index.tar ../../
@@ -36,21 +36,21 @@ jobs:
name: dist
path: ./dist/index/*
- name: SCP
uses: appleboy/scp-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
port: ${{ secrets.SSH_PORT }}
source: "index.tar"
target: "/www/wwwroot/www.celess.cn"
# - name: SCP
# uses: appleboy/scp-action@master
# with:
# host: ${{ secrets.SSH_HOST }}
# username: ${{ secrets.SSH_USERNAME }}
# password: ${{ secrets.SSH_PASSWORD }}
# port: ${{ secrets.SSH_PORT }}
# source: "index.tar"
# target: "/www/wwwroot/www.celess.cn"
- name: Run SSH command
uses: garygrossgarten/github-action-ssh@v0.5.0
with:
command: cd /www/wwwroot/www.celess.cn && bash deploy.sh
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
port: ${{ secrets.SSH_PORT }}
# - name: Run SSH command
# uses: garygrossgarten/github-action-ssh@v0.5.0
# with:
# command: cd /www/wwwroot/www.celess.cn && bash deploy.sh
# host: ${{ secrets.SSH_HOST }}
# username: ${{ secrets.SSH_USERNAME }}
# password: ${{ secrets.SSH_PASSWORD }}
# port: ${{ secrets.SSH_PORT }}

View File

@@ -11,10 +11,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: '12.x'
node-version: '16.x'
- run: npm install
- run: npm run lint && npm run build