This repository has been archived by the owner on Sep 25, 2021. It is now read-only.
forked from MCBRasil/Gnar-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
63 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Java CI with Gradle | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v6.*' | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Get latest release version tag number | ||
id: get_version | ||
uses: battila7/get-version-action@v2 | ||
|
||
- name: Set up Java 11 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: 11 | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Build with Gradle | ||
run: ./gradlew build | ||
|
||
- name: Zip create | ||
run: | | ||
cd build/libs | ||
zip release *.* | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: Release | ||
path: build/libs | ||
|
||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }} | ||
with: | ||
tag_name: ${{ steps.get_version.outputs.version }} | ||
release_name: Octave-MG - ${{ steps.get_version.outputs.version }} | ||
body: | | ||
The New Release! | ||
Build by ${{ github.actor }} | ||
draft: false | ||
prerelease: false | ||
|
||
- uses: xresloader/upload-to-github-release@v1 | ||
name: Upload Release File | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }} | ||
with: | ||
file: "build/libs" | ||
tags: true | ||
draft: false | ||
tag_name: ${{ steps.get_version.outputs.version }} |