Skip to content

Merge branch 'develop' #2

Merge branch 'develop'

Merge branch 'develop' #2

name: Publish
on:
release:
types: [published]
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: adopt
cache: maven
# This step will take the version tag from the release and replace it in `pom.xml` before building.
#- name: Set version from release tag
# run: mvn -B versions:set -DnewVersion=${{ github.event.release.tag_name }} -DgenerateBackupPoms=false
- name: Build and package with Maven
run: mvn -B clean package -DskipTests -DgenerateBackupPoms=false -Pmaster --file pom.xml
- name: Upload to Modrinth
uses: cloudnode-pro/modrinth-publish@v2
with:
token: ${{ secrets.MODRINTH_TOKEN }}
project: wvEhk1hC
name: ${{ github.event.release.name }}
version: ${{ github.event.release.tag_name }}
changelog: ${{ github.event.release.body }}
loaders: |-
paper
spigot
game-versions: |-
1.21.4
1.21.5
files: /home/runner/work/BentoBox/Border/target/Border-${{ github.event.release.tag_name }}.jar
name: Publish

Check failure on line 44 in .github/workflows/modrinth-publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/modrinth-publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 44
on:
release:
types: [published]
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: adopt
cache: maven
# This step will take the version tag from the release and replace it in `pom.xml` before building.
#- name: Set version from release tag
# run: mvn -B versions:set -DnewVersion=${{ github.event.release.tag_name }} -DgenerateBackupPoms=false
- name: Build and package with Maven
run: mvn -B clean package -DskipTests -DgenerateBackupPoms=false -Pmaster --file pom.xml
- name: Upload to Modrinth
uses: cloudnode-pro/modrinth-publish@v2
with:
token: ${{ secrets.MODRINTH_TOKEN }}
project: wvEhk1hC
name: ${{ github.event.release.name }}
version: ${{ github.event.release.tag_name }}
changelog: ${{ github.event.release.body }}
loaders: |-
paper
spigot
game-versions: |-
1.21.4
1.21.5
files: /home/runner/work/Border/Border/target/Border-${{ github.event.release.tag_name }}.jar