CICD
This commit is contained in:
parent
97dc93f3aa
commit
b0c29a6dd4
@ -5,19 +5,19 @@ on: [push]
|
|||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
Explore-Gitea-Actions:
|
Explore-Gitea-Actions:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: http://47.109.37.87:3000/bichangxiong/checkout@v4 # 使用 Gitea 镜像
|
uses: http://git.missmoc.top/mocheng/checkout@v4 # 使用 Gitea 镜像
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1 # 只拉取最新一次提交
|
fetch-depth: 1 # 只拉取最新一次提交
|
||||||
|
|
||||||
- name: Set up Node.js ${{ matrix.node-version }}
|
- name: Set up Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 20.x
|
node-version: 20.x
|
||||||
- name: pnpm
|
- name: pnpm
|
||||||
run: npm i pnpm -g
|
run: npm i pnpm -g
|
||||||
- name: node
|
- name: node
|
||||||
run: pnpm i
|
run: pnpm i
|
||||||
@ -26,12 +26,12 @@ jobs:
|
|||||||
- name: copy file via ssh password
|
- name: copy file via ssh password
|
||||||
uses: appleboy/scp-action@v0.1.7
|
uses: appleboy/scp-action@v0.1.7
|
||||||
with:
|
with:
|
||||||
host: 192.168.1.3
|
host: 127.0.0.1
|
||||||
username: root
|
username: { { SERVER_NAME } }
|
||||||
password: by@2025!
|
password: {{ SERVER_PWD}}
|
||||||
port: 22
|
port: 11001
|
||||||
source: "./apps/web-antd/dist"
|
source: "./apps/web-antd/dist"
|
||||||
target: "/project/wl/web/dist"
|
target: "/project/wl/web/dist"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user