re-write part 1 #8
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: Automated build | |
on: [push, pull_request] | |
jobs: | |
build: | |
if: "!startsWith(github.event.head_commit.message, '[skip]')" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: gradle/wrapper-validation-action@v1 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version: 17 | |
cache: 'gradle' | |
- name: Grant execute permission | |
run: chmod +x ./gradlew | |
- name: Build with Gradle | |
run: ./gradlew build --no-daemon | |
- name: Upload a Build Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
# Artifact name | |
name: Mod | |
path: build/libs/* |