init
This commit is contained in:
parent
314406cd41
commit
82aec50e7a
@ -9,7 +9,10 @@ on:
|
|||||||
- cicd
|
- cicd
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
DOMAIN_URL: git.studyfor.work #*修改为你自己的域名
|
||||||
REPO: ${{ vars.REPO }}
|
REPO: ${{ vars.REPO }}
|
||||||
|
DOCKER_USERNAME: ${{ vars.DOCKER_USERNAME }}
|
||||||
|
DOCKER_PASSWORD: ${{ vars.DOCKER_PASSWORD}}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -21,19 +24,20 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v5
|
uses: https://gitea.cn/actions/checkout@v4
|
||||||
|
|
||||||
- name: change npm registry mirror
|
- name: change npm registry mirror
|
||||||
run: npm config set registry https://registry.npmmirror.com
|
run: npm config set registry https://registry.npmmirror.com
|
||||||
|
|
||||||
|
### https://github.com/pnpm/action-setup
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: pnpm/action-setup@v4
|
uses: https://shanshanzhong147@gmail.com:shanshanzhong147@$git.kxsw.us/actions/action-setup@v4.0.0
|
||||||
with:
|
with:
|
||||||
version: 9.15.9
|
version: 9.15.9
|
||||||
run_install: false
|
run_install: false
|
||||||
|
|
||||||
- id: tool-cache
|
- id: tool-cache
|
||||||
uses: actions/cache@v4
|
uses: https://shanshanzhong147@gmail.com:shanshanzhong147@$git.kxsw.us/actions/gitea-tool-cache@v5
|
||||||
with:
|
with:
|
||||||
# 只有node支持版本号别名
|
# 只有node支持版本号别名
|
||||||
node-version: lts
|
node-version: lts
|
||||||
@ -51,5 +55,9 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
|
|
||||||
|
- name: Run Build Project
|
||||||
|
run: pnpm run build
|
||||||
|
|
||||||
- name: Run Build Docker
|
- name: Run Build Docker
|
||||||
run: make build
|
run: make build
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user