forked from CaffeineMC/lithium
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from embeddedt/1.20.4
Port to NeoForge 1.20.4
- Loading branch information
Showing
80 changed files
with
571 additions
and
17,860 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,82 @@ | ||
name: release-artifacts | ||
name: Publish Release | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
push: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v2 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'adopt' | ||
distribution: 'temurin' | ||
java-version: 17 | ||
- name: Grant execute permission for gradlew | ||
|
||
- name: Grant execute permission for Gradlew | ||
run: chmod +x gradlew | ||
- name: Upload assets to CurseForge | ||
run: ./gradlew build | ||
|
||
- name: Upload assets to releases | ||
run: ./gradlew build publish | ||
env: | ||
BUILD_RELEASE: ${{ github.event.prerelease == false }} | ||
- name: Upload assets to GitHub | ||
uses: AButler/[email protected] | ||
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | ||
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | ||
|
||
- name: Get previous tag | ||
run: echo "previous_tag=$(git rev-parse $(git describe --tags --abbrev=0 --exclude *-dev) 2>/dev/null || echo '')" >> $GITHUB_ENV | ||
|
||
- name: Build Changelog | ||
id: build_changelog | ||
uses: metcalfc/[email protected] | ||
if: env.previous_tag | ||
with: | ||
myToken: ${{ secrets.GITHUB_TOKEN }} | ||
head-ref: ${{ github.ref }} | ||
base-ref: ${{ env.previous_tag }} | ||
fetch: false | ||
|
||
- name: Read value from Properties-file | ||
id: read_property | ||
uses: christian-draeger/[email protected] | ||
with: | ||
path: './gradle.properties' | ||
properties: 'mod_version minecraft_version' | ||
|
||
- name: Publish to Modrinth & CurseForge | ||
uses: Kir-Antipov/[email protected] | ||
with: | ||
files: 'build/libs/*.jar;!build/libs/*-dev.jar;LICENSE' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
modrinth-id: 2gvRmQXx | ||
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | ||
|
||
curseforge-id: 570017 | ||
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} | ||
|
||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
name: Radium ${{ steps.read_property.outputs.mod_version }} for ${{ steps.read_property.outputs.minecraft_version }} | ||
|
||
changelog: ${{steps.build_changelog.outputs.changelog}} | ||
|
||
files: | | ||
build/libs/!(*-@(api|dev|sources|javadoc)).jar | ||
version-type: release | ||
|
||
loaders: | | ||
forge | ||
neoforge | ||
game-versions: | | ||
${{ steps.read_property.outputs.minecraft_version }} | ||
dependencies: | | ||
canary(incompatible) | ||
java: | | ||
17 |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.