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 directory: "/" # Location of package manifests
schedule: schedule:
interval: "monthly" interval: "monthly"
open-pull-requests-limit: 10 open-pull-requests-limit: 20

View File

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

View File

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