Merge pull request #16 from HyperBeast43/master #44
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: Run Gradle on commit | |
on: | |
push: | |
branches: [master] | |
jobs: | |
gradle: | |
runs-on: ubuntu-latest | |
if: contains(github.event.head_commit.message, '[build]') | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-java@v2 | |
with: | |
distribution: temurin | |
java-version: '17' | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Build | |
run: ./gradlew build | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: "outputs" | |
path: "*/build/libs" |