Skip to content

release

release #29

Workflow file for this run

name: Release
on:
push:
tags: [ "*" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Generate changelog
id: changelog
uses: metcalfc/[email protected]
with:
myToken: ${{ secrets.GITHUB_TOKEN }}
- name: Save to CHANGELOG
run: echo "${{ steps.changelog.outputs.changelog }}" > CHANGELOG.md
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11
- name: Build with Maven
run: mvn -B install javadoc:javadoc
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: "BetterGUI"
path: |
./target/bettergui*.jar
CHANGELOG.md
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/site/apidocs
- name: Release
uses: Kir-Antipov/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
modrinth-id: SekuiXMA
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
modrinth-featured: true
loaders: |
bukkit
spigot
paper
purpur
folia
game-versions: ">=1.8"
game-version-filter: releases
files: |
target/bettergui-*-shaded.jar
target/bettergui-*-@(sources|javadoc).jar
name: ${{ github.ref_name }}
changelog: ${{ steps.changelog.outputs.changelog }}
version: ${{ github.ref_name }}