Skip to content

修正workflow

修正workflow #71

Workflow file for this run

# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: EOK Snapshot Build
on: [ push ]
jobs:
build:

Check failure on line 9 in .github/workflows/workflow_java.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/workflow_java.yml

Invalid workflow file

You have an error in your yaml syntax on line 9
runs-on: ubuntu-latest
- name: Clone EOK repository
uses: actions/checkout@v3
with:
path: EOK-1.12
- name: Set up JDK 1.8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'zulu'
cache: 'gradle'
- name: Copy gradle.properties
run: cp ./EOK-1.12/.github/gradle.properties ./EOK-1.12/
- name: Grant execute permission for gradlew
run: chmod +x ./EOK-1.12/gradlew
- name: CI Setup
run: cd ./EOK-1.12/ && ./gradlew setupCIWorkspace
- name: Build
run: cd ./EOK-1.12/ && ./gradlew build
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: EOK Snapshot
path: ./EOK-1.12/build/libs