Skip to content

chore(deps): update gradle/actions action to v4 #2

chore(deps): update gradle/actions action to v4

chore(deps): update gradle/actions action to v4 #2

Workflow file for this run

name: Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
jobs:
build:

Check failure on line 11 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

You have an error in your yaml syntax on line 11
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"