Change build action to run on pull requests (#251)

This commit is contained in:
Vechro
2022-07-29 12:16:29 +03:00
committed by GitHub
parent bad90709cc
commit bd2cb475b6
4 changed files with 84 additions and 60 deletions

View File

@@ -4,17 +4,18 @@ on:
tags:
- v[0-9].[0-9]+.[0-9]+-rc.[0-9]+
jobs:
build:
runs-on: ubuntu-18.04
release_candidate_to_maven_central:
runs-on: ubuntu-latest
steps:
- name: Get OPENRNDR release tag
run: echo "OPENRNDR_VERSION=$(git ls-remote --refs --tags https://github.com/openrndr/openrndr | cut --delimiter='/' --fields=3 | sort --version-sort | tail --lines=1)" >> $GITHUB_ENV
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
- uses: actions/setup-java@v1
- uses: actions/setup-java@v2
with:
distribution: temurin
java-version: 17
- name: Build ORX
env: