222
This commit is contained in:
parent
5e0b42731c
commit
9e0b84c7ee
@ -5,7 +5,7 @@ on:
|
|||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-deploy:
|
build-and-deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: node:18
|
container: node:18
|
||||||
steps:
|
steps:
|
||||||
@ -24,7 +24,7 @@ jobs:
|
|||||||
registry-url: 'https://registry.npmmirror.com'
|
registry-url: 'https://registry.npmmirror.com'
|
||||||
|
|
||||||
- name: 缓存
|
- name: 缓存
|
||||||
uses: https://gitea.cn/actions/cache@v3
|
uses: https://gitea.cn/actions/cache@v3
|
||||||
id: cache
|
id: cache
|
||||||
with:
|
with:
|
||||||
path: node_modules
|
path: node_modules
|
||||||
@ -42,4 +42,4 @@ jobs:
|
|||||||
key: ${{ secrets.SERVER_SSH_KEY }} # 服务器连接密钥
|
key: ${{ secrets.SERVER_SSH_KEY }} # 服务器连接密钥
|
||||||
source: './dist/' # 拷贝文件目录
|
source: './dist/' # 拷贝文件目录
|
||||||
target: ${{ secrets.USER_TARGET }} # 服务器目标目录
|
target: ${{ secrets.USER_TARGET }} # 服务器目标目录
|
||||||
strip_components: 2
|
strip_components: 2
|
Loading…
Reference in New Issue
Block a user