mirai/.github/workflows/bintray.yml

124 lines
5.0 KiB
YAML
Raw Normal View History

2020-04-11 00:04:45 +08:00
# This is a basic workflow to help you get started with Actions
name: Bintray 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, prereleased ]
push:
tags:
- '*-dev*'
2020-04-11 00:04:45 +08:00
# 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"
2021-01-28 10:39:18 +08:00
publish-mirai:
2020-04-11 00:04:45 +08:00
runs-on: ubuntu-latest
steps:
2021-01-30 20:34:55 +08:00
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout submodules
2021-01-30 20:49:19 +08:00
run: git submodule update --init --recursive --remote
2020-04-11 00:04:45 +08:00
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
2021-01-30 20:49:19 +08:00
- name: chmod -R 777 *
run: chmod -R 777 *
2020-12-17 12:41:44 +08:00
- name: Init gradle project
run: ./gradlew clean --info
2021-01-28 11:59:15 +08:00
- name: Check keys
run: >
./gradlew :mirai-core-utils:ensureBintrayAvailable
:mirai-core-api:ensureBintrayAvailable
:mirai-core:ensureBintrayAvailable
:mirai-console:ensureBintrayAvailable
-Dbintray_user=${{ secrets.BINTRAY_USER }} -Pbintray_user=${{ secrets.BINTRAY_USER }}
-Dbintray_key=${{ secrets.BINTRAY_KEY }} -Pbintray_key=${{ secrets.BINTRAY_KEY }}
- name: fillBuildConstants
2020-12-18 20:38:51 +08:00
run: >
./gradlew
fillBuildConstants --info --stacktrace
-Dbintray_user=${{ secrets.BINTRAY_USER }} -Pbintray_user=${{ secrets.BINTRAY_USER }}
-Dbintray_key=${{ secrets.BINTRAY_KEY }} -Pbintray_key=${{ secrets.BINTRAY_KEY }}
- name: Assemble
run: ./gradlew assemble --info --stacktrace
- name: Check
run: ./gradlew check --info --stacktrace
2020-12-17 12:41:44 +08:00
- name: Gradle :mirai-core-utils:publish
2020-12-18 20:38:51 +08:00
run: >
./gradlew :mirai-core-utils:publish --info --stacktrace
-Dbintray_user=${{ secrets.BINTRAY_USER }} -Pbintray_user=${{ secrets.BINTRAY_USER }}
-Dbintray_key=${{ secrets.BINTRAY_KEY }} -Pbintray_key=${{ secrets.BINTRAY_KEY }}
2020-12-17 12:41:44 +08:00
- name: Gradle :mirai-core-api:publish
2020-12-18 20:38:51 +08:00
run: >
./gradlew :mirai-core-api:publish --info --stacktrace
-Dbintray_user=${{ secrets.BINTRAY_USER }} -Pbintray_user=${{ secrets.BINTRAY_USER }}
-Dbintray_key=${{ secrets.BINTRAY_KEY }} -Pbintray_key=${{ secrets.BINTRAY_KEY }}
2020-12-17 12:41:44 +08:00
2020-08-18 09:24:44 +08:00
- name: Gradle :mirai-core:publish
2020-12-18 20:38:51 +08:00
run: >
./gradlew :mirai-core:publish --info --stacktrace
-Dbintray_user=${{ secrets.BINTRAY_USER }} -Pbintray_user=${{ secrets.BINTRAY_USER }}
-Dbintray_key=${{ secrets.BINTRAY_KEY }} -Pbintray_key=${{ secrets.BINTRAY_KEY }}
2020-12-17 12:41:44 +08:00
2020-11-30 23:31:07 +08:00
- name: Gradle :mirai-core-all:bintrayUpload
2020-12-18 20:38:51 +08:00
run: >
./gradlew :mirai-core-all:bintrayUpload --info
-Dbintray_user=${{ secrets.BINTRAY_USER }} -Pbintray_user=${{ secrets.BINTRAY_USER }}
-Dbintray_key=${{ secrets.BINTRAY_KEY }} -Pbintray_key=${{ secrets.BINTRAY_KEY }}
- name: Gradle :mirai-console:bintrayUpload
run: >
./gradlew
:mirai-console:bintrayUpload --info
-Dbintray_user=${{ secrets.BINTRAY_USER }} -Pbintray_user=${{ secrets.BINTRAY_USER }}
-Dbintray_key=${{ secrets.BINTRAY_KEY }} -Pbintray_key=${{ secrets.BINTRAY_KEY }}
- name: Gradle :mirai-console-terminal:bintrayUpload
run: >
./gradlew
:mirai-console-terminal:bintrayUpload --info
-Dbintray_user=${{ secrets.BINTRAY_USER }} -Pbintray_user=${{ secrets.BINTRAY_USER }}
-Dbintray_key=${{ secrets.BINTRAY_KEY }} -Pbintray_key=${{ secrets.BINTRAY_KEY }}
- name: Gradle :mirai-console-compiler-common:bintrayUpload
run: >
./gradlew
:mirai-console-compiler-common:bintrayUpload --info
-Dbintray_user=${{ secrets.BINTRAY_USER }} -Pbintray_user=${{ secrets.BINTRAY_USER }}
-Dbintray_key=${{ secrets.BINTRAY_KEY }} -Pbintray_key=${{ secrets.BINTRAY_KEY }}
- name: Gradle :mirai-console-compiler-annotations:bintrayUpload
run: >
./gradlew
:mirai-console-compiler-annotations:bintrayUpload --info
-Dbintray_user=${{ secrets.BINTRAY_USER }} -Pbintray_user=${{ secrets.BINTRAY_USER }}
-Dbintray_key=${{ secrets.BINTRAY_KEY }} -Pbintray_key=${{ secrets.BINTRAY_KEY }}
- name: Gradle :mirai-console-intellij:bintrayUpload
run: >
./gradlew
:mirai-console-intellij:bintrayUpload --info
-Dbintray_user=${{ secrets.BINTRAY_USER }} -Pbintray_user=${{ secrets.BINTRAY_USER }}
-Dbintray_key=${{ secrets.BINTRAY_KEY }} -Pbintray_key=${{ secrets.BINTRAY_KEY }}
- name: Publish Gradle plugin
run: >
./gradlew
:mirai-console-gradle:publishPlugins --info --stacktrace
-Dgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }} -Pgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }}
-Dgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }} -Pgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }}