Skip to content

Add GitHub workflow

Add GitHub workflow #1

Workflow file for this run

name: build
on:
push:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Build
run: ./gradlew spotlessCheck build
env:
OPENAI_API_KEY: {{ secrets.OPENAI_API_KEY }}

Check failure on line 22 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: 22, Col: 27): A mapping was not expected