-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (27 loc) · 870 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Build and Release
on: [push]
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '8'
cache: gradle
- name: Build with Gradle
run: gradle -Pversion=${{ github.run_number }} build
- name: Move JARs
run: mkdir staging && cp build/libs/*.jar staging
- name: Create Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
title: Build ${{ github.run_number }}
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
automatic_release_tag: "v${{ github.run_number }}"
files: |
staging/moosic-${{ github.run_number }}.jar