Skip to content

Fix JDK12+ final field modification startup issues with java version … #1

Fix JDK12+ final field modification startup issues with java version …

Fix JDK12+ final field modification startup issues with java version … #1

Workflow file for this run

name: CI
on:
push:
paths:
- patches/**.patch
- pom.xml
- settings.xml
pull_request:
paths:
- patches/**.patch
workflow_dispatch:
jobs:
build:
permissions:
contents: read
strategy:
matrix:
java:
- "8"
runs-on: ubuntu-latest
steps:
- id: checkout
name: Checkout
uses: actions/checkout@v3
- id: setup-java
name: Setup Java ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: temurin
cache: maven
- id: setup-git
name: Setup Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub CI"
- id: build
name: Build SportPaper
run: bash sportpaper build
- id: upload
name: Upload SportPaper
uses: actions/upload-artifact@v3
with:
name: SportPaper.jar
path: SportPaper-Server/target/sportpaper-*.jar
if-no-files-found: error
deploy:
permissions:
contents: read
packages: write
need: build

Check failure on line 53 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 53, Col: 5): Unexpected value 'need'
if: |
github.repository_owner == 'Electroid' &&
github.event_name == 'push' &&
github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- id: deploy
name: Deploy SportPaper
run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}