mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 18:40:15 +08:00
8fe2506e75
* Rename ConsolePure to ConsoleTerminal * Fix the way to close console with Ctrl+C * Fix windows pipeline error. Fix EndOfFileException * Add ConsoleExperimentalApi * Collect imports * Review - Change old CLI main deprecation level to ERROR - Update documents - Update tasks from pure to terminal * Fix error in closing console. * Fix terminal closing and Ctrl+C closing. * Add console shut-downing status * Don't invokeOnCompletion when console shut-downing * Fix Input interrupt * Ensure active unless console is shut downing * Change MiraiConsole.isShutDowning to `!job.isActive` * Code Review - Update Message on MiraiConsolePureLoader.kt - Change MiraiConsole.isShutDowning to MiraiConsole.isActive - Change MiraiConsole.shutdown to ConsoleInternalApi * run catching * Fix console input * Update shutdown * Fix module * Revert 5199395 * Typo
49 lines
1.7 KiB
YAML
49 lines
1.7 KiB
YAML
# This is a basic workflow to help you get started with Actions
|
|
|
|
name: mirai-repo Publish
|
|
|
|
# Controls when the action will run. Triggers the workflow on push or pull request
|
|
# events but only for the master branch
|
|
on:
|
|
release:
|
|
types:
|
|
- created
|
|
|
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
jobs:
|
|
# This workflow contains a single job called "build"
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up JDK 1.8
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 1.8
|
|
- name: Grant execute permission for gradlew
|
|
run: chmod +x gradlew
|
|
- name: Gradle clean
|
|
run: ./gradlew clean
|
|
- name: Gradle build
|
|
run: ./gradlew build # if test's failed, don't publish
|
|
- name: Gradle :mirai-console:githubUpload
|
|
run: ./gradlew :mirai-console:githubUpload -Dgithub_token=${{ secrets.MAMOE_TOKEN }} -Pgithub_token=${{ secrets.MAMOE_TOKEN }}
|
|
- name: Gradle :mirai-console-terminal:githubUpload
|
|
run: ./gradlew :mirai-console-terminal:githubUpload -Dgithub_token=${{ secrets.MAMOE_TOKEN }} -Pgithub_token=${{ secrets.MAMOE_TOKEN }}
|
|
|
|
|
|
# - name: Upload artifact
|
|
# uses: actions/upload-artifact@v1.0.0
|
|
# with:
|
|
# # Artifact name
|
|
# name: mirai-core
|
|
# # Directory containing files to upload
|
|
# path: "mirai-core/build/libs/mirai-core-*-all.jar"
|
|
# - name: Upload artifact
|
|
# uses: actions/upload-artifact@v1.0.0
|
|
# with:
|
|
# # Artifact name
|
|
# name: mirai-core-qqandroid-all
|
|
# # Directory containing files to upload
|
|
# path: "mirai-core-qqandroid/build/libs/mirai-core-qqandroid-*-all.jar"
|