-
Notifications
You must be signed in to change notification settings - Fork 4
27 lines (26 loc) · 932 Bytes
/
dev_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
name: Publish Development Build
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: 21
distribution: adopt
- name: Get Version
id: get_version
# display all properties | get line with version in it | split by space (input is for example "mod_version: 1.8.7")
run: echo ::set-output name=VERSION::$(./gradlew properties | grep mod_version | cut -f 2 -d " ")
- name: Build
run: ./gradlew build
- name: Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: '${{ secrets.GITHUB_TOKEN }}'
automatic_release_tag: ${{ steps.get_version.outputs.VERSION }}
prerelease: true
title: Dev Build v${{ steps.get_version.outputs.VERSION }}
files: |
./build/libs/*.jar