1.20.1 version #23
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: Publish Development Build | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-java@v2 | |
with: | |
java-version: 17 | |
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 |