update #33
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release to Github | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build: | |
name: Build and Release | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Java JDK | |
uses: actions/[email protected] | |
with: | |
java-version: 11 | |
- name: Gradle Wrapper Validation | |
uses: gradle/[email protected] | |
- name: Make gradlew executable | |
run: chmod +x ./gradlew | |
- name: Build with Gradle | |
run: ./gradlew buildPlugin | |
- name: Upload Jar File | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Jar File | |
path: build/mirai | |
- name: Upload All Build File | |
uses: actions/upload-artifact@v2 | |
with: | |
name: All File | |
path: build | |
- name: Release to Github | |
uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: ${{steps.branch_name.outputs.SOURCE_TAG}} | |
prerelease: false | |
title: ${{steps.branch_name.outputs.SOURCE_TAG}} | |
files: | | |
build/mirai/*.jar |