Skip to content

Update github action #125

Update github action

Update github action #125

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
fetch-tags: true
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/gradle-build-action@v3.5.0
- name: Build with Gradle
run:
echo "FILE=$(find app/build/outputs/ci -name '*.jar')" >> $GITHUB_ENV
with:

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

View workflow run for this annotation

GitHub Actions / Build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 28, Col: 9): Unexpected value 'with'
arguments: build
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4.6.2
with:
path: ${{ env.FILE }}
name: ifw-pre-${{ github.event.head_commit.id }}
- name: Download a Build Artifact
uses: actions/download-artifact@v4.2.1
with:
path: artifacts
- name: Release
run: |
export file=$(find artifacts -name "*.jar")