Skip to content

Yaml syntax error. Not quite sure why. #10

Yaml syntax error. Not quite sure why.

Yaml syntax error. Not quite sure why. #10

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*.*.*'
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'zulu'
java-package: jdk
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: 6.7
- name: Build JAR with Gradle Wrapper
run: ./gradlew clean jar
- name: Upload Release Candidate JAR
if: contains(github.ref, '-rc') || contains(github.ref, '-beta') || contains(github.ref, '-alpha')
uses: softprops/action-gh-release@v1
with:
files: build/libs/*.jar
prerelease: true
body: This is a pre-release version of the plugin. The plugin JAR is attached to this release. Please test and report any issues.

Check failure on line 42 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

You have an error in your yaml syntax on line 42
- name: Upload Release JAR
if: !contains(github.ref, '-rc') && !contains(github.ref, '-beta') && !contains(github.ref, '-alpha')
uses: softprops/action-gh-release@v1
with:
files: build/libs/*.jar
prerelease: false
body: Release version ${{ github.ref_name }}. The plugin JAR is attached to this release.