mirror of
https://github.com/mamoe/mirai.git
synced 2026-08-19 12:43:32 +08:00
Upload artifacts after workflow
This commit is contained in:
61
.github/actions/upload-build-artifacts/action.yml
vendored
Normal file
61
.github/actions/upload-build-artifacts/action.yml
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
name: Upload mirai build artifacts
|
||||
author: Karlatemp
|
||||
description: Not exists
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Ensure build
|
||||
shell: bash
|
||||
run: >
|
||||
./gradlew build publishToMavenLocal --scan
|
||||
--exclude-task allTests
|
||||
--exclude-task jvmTest
|
||||
--exclude-task androidTest
|
||||
--exclude-task test
|
||||
--exclude-task check
|
||||
|
||||
- name: Upload mirai-core-utils
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: mirai-core-utils
|
||||
path: mirai-core-utils/build/libs
|
||||
|
||||
- name: Upload mirai-core-api
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: mirai-core-api
|
||||
path: mirai-core-api/build/libs
|
||||
|
||||
- name: Upload mirai-core
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: mirai-core
|
||||
path: mirai-core/build/libs
|
||||
|
||||
- name: Upload mirai-core-all
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: mirai-core-all
|
||||
path: mirai-core-all/build/libs
|
||||
|
||||
|
||||
- name: Upload mirai-console
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: mirai-console
|
||||
path: mirai-console/backend/mirai-console/build/libs
|
||||
|
||||
- name: Upload mirai-console-terminal
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: mirai-console-terminal
|
||||
path: mirai-console/frontend/mirai-console-terminal/build/libs
|
||||
|
||||
|
||||
- name: Upload mirai-console-gradle
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: mirai-console-gradle
|
||||
path: mirai-console/tools/gradle-plugin/build/libs
|
||||
|
||||
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@@ -41,3 +41,6 @@ jobs:
|
||||
|
||||
- name: Ensure KDoc valid
|
||||
run: ./gradlew dokkaHtmlMultiModule
|
||||
|
||||
- name: Upload build artifacts
|
||||
uses: ./.github/actions/upload-build-artifacts
|
||||
|
||||
Reference in New Issue
Block a user