Skip to content

1.8.1(1.21.7-1.19.4) #47

1.8.1(1.21.7-1.19.4)

1.8.1(1.21.7-1.19.4) #47

Workflow file for this run

name: Create Release
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v2
- name: setup jdk 21
uses: actions/setup-java@v1
with:
java-version: 21
- name: Get Release Changelog
run: |
# Read the event payload to get the changelog and save it to a file
changelog=$(jq -r '.release.body' $GITHUB_EVENT_PATH)
echo "$changelog" > changelog.md
echo "Changelog saved to changelog.md"
- name: make gradle wrapper executable
run: chmod +x ./gradlecw
- name: build
run: ./gradlecw build publishMods -Pbuild.release=true --info
env:
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
- name: Release
uses: softprops/action-gh-release@v1
with:
files: 'versions/**/build/libs/!(*-@(dev|sources|javadoc|all)).jar'