Commit ccf205df authored by Him188's avatar Him188 Committed by GitHub

Update main2.yml

parent 83159356
...@@ -5,29 +5,36 @@ name: CI ...@@ -5,29 +5,36 @@ name: CI
# Controls when the action will run. Triggers the workflow on push or pull request # Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch # events but only for the master branch
on: on:
push: release:
branches: [ master ] types:
pull_request: - created
branches: [ master ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel # A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs: jobs:
# This workflow contains a single job called "build" # This workflow contains a single job called "build"
build: build:
# The type of runner that the job will run on
runs-on: ubuntu-latest runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps: steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2
- uses: actions/checkout@v2 - name: Set up JDK 1.8
uses: actions/setup-java@v1
# Runs a single command using the runners shell with:
- name: Run a one-line script java-version: 1.8
run: echo Hello, world! - name: Grant execute permission for gradlew
run: chmod +x gradlew
# Runs a set of commands using the runners shell - name: Build with Gradle and shadowJar
- name: Run a multi-line script run: ./gradlew :mirai-core:shadowJar :mirai-core-qqandroid:shadowJar
run: | - name: Upload artifact
echo Add other actions to build, uses: actions/upload-artifact@v1.0.0
echo test, and deploy your project. with:
# Artifact name
name: mirai-core-all
# 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"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment