Skip to content
This repository has been archived by the owner on Sep 25, 2021. It is now read-only.

Commit

Permalink
build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MG8853 committed Aug 27, 2021
1 parent fa501f5 commit fbf2a14
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/build.yml
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 }}

0 comments on commit fbf2a14

Please sign in to comment.