chore(deps): update gradle/actions action to v4 #2
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
name: Build | ||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v4 | ||
- name: Set up vars | ||
shell: bash | ||
run: | | ||
echo "sha_short=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV" | ||
- name: Set up Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: 22 | ||
- name: Set up Gradle | ||
uses: gradle/actions/setup-gradle@v4 | ||
with: | ||
gradle-home-cache-cleanup: true | ||
- name: Set up Android | ||
uses: android-actions/setup-android@v3 | ||
with: | ||
packages: '' | ||
- name: Build | ||
run: | | ||
./gradlew | ||
- name: Prepare jar | ||
if: success() | ||
id: prepareJar | ||
run: | | ||
mv build/libs/abe-all.jar "build/libs/abe-all-${{ env.sha_short }}.jar" | ||
- name: Upload jar | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: $GITHUB_REF_NAME-${{ env.sha_short }} | ||
path: "build/libs/abe-all-${{ env.sha_short }}.jar" | ||