Skip to content

I'm using Gradle

I'm using Gradle #2

Workflow file for this run

name: Build NoCheat
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
cache: maven
- name: Build NoCheat
run: chmod +x ./gradlew
run: ./gradlew b

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

View workflow run for this annotation

GitHub Actions / Build NoCheat

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 20, Col: 7): 'run' is already defined
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: NoCheat
path: ./build/libs/**.jar