Skip to content

Commit

Permalink
update release action
Browse files Browse the repository at this point in the history
  • Loading branch information
HSGamer committed Feb 16, 2024
1 parent 3788a9c commit 7391260
Showing 1 changed file with 35 additions and 18 deletions.
53 changes: 35 additions & 18 deletions .github/workflows/gradle-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,38 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
with:
arguments: build
- name: GH Release
uses: softprops/action-gh-release@v1
with:
fail_on_unmatched_files: true
files: "./build/libs/MoreFoWorld*.jar"
generate_release_notes: true
draft: false
prerelease: false
- uses: actions/checkout@v4

- name: Generate changelog
id: changelog
uses: metcalfc/[email protected]
with:
myToken: ${{ secrets.GITHUB_TOKEN }}

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@v3
with:
arguments: build

- name: Release
uses: HSGamer/action-mcreleaser@main
with:
files: build/libs/MoreFoWorld*.jar
env:
DESCRIPTION: ${{ steps.changelog.outputs.changelog }}
GAME_VERSIONS: ">=1.20"

GITHUB_TOKEN: ${{ github.token }}

MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
MODRINTH_PROJECT: saPdoNQI
MODRINTH_LOADERS: folia

HANGAR_KEY: ${{ secrets.HANGAR_KEY }}
HANGAR_PROJECT: MoreFoWorld
HANGAR_PLATFORM: paper

0 comments on commit 7391260

Please sign in to comment.