chore(deps): update gradle/gradle-build-action action to v3.4.0 #151
Workflow file for this run
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
# Builds the project with Gradle and uploads the artifact to the GitHub Actions Artifacts. | |
name: Java CI with Gradle | |
on: | |
push: | |
permissions: | |
contents: read | |
checks: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.commits[0].message, '[ci-skip]')" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Make Gradlew executable | |
run: chmod +x ./gradlew | |
- name: Build with Gradle | |
uses: gradle/[email protected] | |
with: | |
arguments: build | |
- name: Publish API | |
continue-on-error: true | |
uses: gradle/[email protected] | |
with: | |
arguments: publish -PndailyrewardsUsername=${{ secrets.REPO_USERNAME }} -PndailyrewardsPassword=${{ secrets.REPO_SECRET }} | |
- name: Upload NDailyRewards | |
uses: actions/[email protected] | |
with: | |
name: NDailyRewards Dev Artifacts | |
path: "build/libs/NDailyRewards-*.jar" |