Merge branch 'main' of https://git.hxyouzi.com/youzitree/blog
This commit is contained in:
commit
a2bf357fd0
@ -20,6 +20,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
# gitea-tool-cache导出 node 具体版本
|
# gitea-tool-cache导出 node 具体版本
|
||||||
node-version: ${{ steps.tool-cache.outputs.node-version }}
|
node-version: ${{ steps.tool-cache.outputs.node-version }}
|
||||||
|
registry-url: https://registry.npmmirror.com
|
||||||
|
|
||||||
- name: 缓存
|
- name: 缓存
|
||||||
uses: https://gitea.cn/actions/cache@v4
|
uses: https://gitea.cn/actions/cache@v4
|
||||||
@ -28,12 +29,21 @@ jobs:
|
|||||||
path: node_modules
|
path: node_modules
|
||||||
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
|
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
|
||||||
|
|
||||||
|
- name: 判断yarn是否安装,如果未安装则安装
|
||||||
|
run: |
|
||||||
|
if ! command -v yarn &> /dev/null; then
|
||||||
|
echo "yarn 未安装,开始安装"
|
||||||
|
npm install -g yarn
|
||||||
|
else
|
||||||
|
echo "yarn 已安装"
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Install and Build # 下载依赖 打包项目
|
- name: Install and Build # 下载依赖 打包项目
|
||||||
run: |
|
run: |
|
||||||
yarn install
|
yarn install
|
||||||
yarn build
|
yarn build
|
||||||
- name: Appleboy
|
- name: Appleboy
|
||||||
uses: https://gitcode.net/weixin_44697517/scp-action@v0.1.4
|
uses: https://gitee.com/liushuai05/scp-action@v0.1.7
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.USER_HOST }} # 服务器地址: xxx.xxx.xxx.xxx
|
host: ${{ secrets.USER_HOST }} # 服务器地址: xxx.xxx.xxx.xxx
|
||||||
username: ${{ secrets.USER_NAME }} # 服务器名字 一般是root
|
username: ${{ secrets.USER_NAME }} # 服务器名字 一般是root
|
||||||
|
Loading…
Reference in New Issue
Block a user