This commit is contained in:
smf
2024-03-04 17:07:58 +08:00
parent 86d55d0966
commit d9ef759f4c
2 changed files with 10 additions and 4 deletions

View File

@@ -8,8 +8,9 @@ on:
required: true required: true
type: string type: string
artifact-name: artifact-name:
required: true required: false
type: string type: string
default: 'artifact'
jobs: jobs:
build_java_project: build_java_project:

View File

@@ -4,9 +4,14 @@ on:
node-version: node-version:
required: true required: true
type: string type: string
artifact-name: dist-dir:
required: true required: false
type: string type: string
default: 'dist'
artifact-name:
required: false
type: string
default: 'artifact'
jobs: jobs:
build_node_project: build_node_project:
@@ -27,7 +32,7 @@ jobs:
- run: npm ci - run: npm ci
- run: npm run build - run: npm run build
- run: mv dist pub - run: mv ${{ inputs.dist-dir }} pub
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
with: with: