1.8.1(1.21.7-1.19.4) #47
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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' |