fix: 修复工作流错误
This commit is contained in:
parent
f4737cfd08
commit
1174c4d2f5
1 changed files with 20 additions and 18 deletions
38
.github/workflows/script_build.yml
vendored
38
.github/workflows/script_build.yml
vendored
|
|
@ -10,25 +10,27 @@ on:
|
|||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4.2.2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4.2.2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4.4.0
|
||||
with:
|
||||
node-version: 22
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4.4.0
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Install dependencies
|
||||
run: cd script && npm install
|
||||
- name: Install dependencies
|
||||
run: cd script && npm install
|
||||
|
||||
- name: Build
|
||||
run: npm run build
|
||||
- name: Build
|
||||
run: cd script && npm run build
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v3.0.1
|
||||
with:
|
||||
path: ./script/updateVersionCode.js
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4.6.2
|
||||
with:
|
||||
name: Todo Script
|
||||
path: ./script/updateVersionCode.js
|
||||
Loading…
Reference in a new issue