Skip to content

Commit

Permalink
Merge pull request #23 from embeddedt/1.20.4
Browse files Browse the repository at this point in the history
Port to NeoForge 1.20.4
  • Loading branch information
dima-dencep authored Mar 7, 2024
2 parents b8f2818 + 21c6e2a commit 0ee47c3
Show file tree
Hide file tree
Showing 80 changed files with 571 additions and 17,860 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ everything above this dashed line (including the line itself.)
> Replace this text with the exact version of the mod you are using. Every part of the version is important! If you
> do not know what version you are using, look at the file name in your "mods" folder.
>
> Example: lithium-fabric-mc1.16.5-0.6.4
> Example: radium-mc1.16.5-0.6.4
### Expected Behavior

Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/crash_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ everything above this dashed line (including the line itself.)
> Replace this text with the exact version of the mod you are using. Every part of the version is important! If you
> do not know what version you are using, look at the file name in your "mods" folder.
>
> Example: lithium-fabric-mc1.16.5-0.6.4
> Example: radium-mc1.16.5-0.6.4
>
### Reproduction Steps

Expand Down Expand Up @@ -56,4 +56,4 @@ everything above this dashed line (including the line itself.)
### Additional Information

> Provide any additional information or context which may be relevant to the issue. If you have none to add,
> you can remove this section. If possible, please confirm that the crash does not happen when Lithium is not installed.
> you can remove this section. If possible, please confirm that the crash does not happen when Radium (Lithium) is not installed.
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE/bug_fix.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ assignees: ''

### Preface

Please read our [Contributor Guidelines](https://github.com/CaffeineMC/lithium-fabric/blob/1.17.x/dev/CONTRIBUTING.md)
Please read our [Contributor Guidelines](https://github.com/Reforged-Hub/radium-upstream/blob/1.20.1/CONTRIBUTING.md)
before submitting any pull requests to this repository.

By submitting a pull request, you are indicating that you agree to
the [Contributor License Agreement](https://github.com/CaffeineMC/lithium-fabric/blob/1.17.x/dev/CONTRIBUTING.md#contributor-license-agreement-cla)
the [Contributor License Agreement](https://github.com/Reforged-Hub/radium-upstream/blob/1.20.1/CONTRIBUTING.md#contributor-license-agreement-cla)
and that your code will be licensed irrecoverably under the GNU LGPLv3. If you do not agree to these terms, do not open
a pull request.

Expand Down
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE/new_feature.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ assignees: ''

### Preface

Please read our [Contributor Guidelines](https://github.com/CaffeineMC/lithium-fabric/blob/1.17.x/dev/CONTRIBUTING.md)
Please read our [Contributor Guidelines](https://github.com/Reforged-Hub/radium-upstream/blob/1.20.1/CONTRIBUTING.md)
before submitting any pull requests to this repository.

By submitting a pull request, you are indicating that you agree to
the [Contributor License Agreement](https://github.com/CaffeineMC/lithium-fabric/blob/1.17.x/dev/CONTRIBUTING.md#contributor-license-agreement-cla)
the [Contributor License Agreement](https://github.com/Reforged-Hub/radium-upstream/blob/1.20.1/CONTRIBUTING.md#contributor-license-agreement-cla)
and that your code will be licensed irrecoverably under the GNU LGPLv3. If you do not agree to these terms, do not open
a pull request.

Expand Down
29 changes: 0 additions & 29 deletions .github/workflows/gradle.yml

This file was deleted.

83 changes: 68 additions & 15 deletions .github/workflows/publish.yml
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
23 changes: 0 additions & 23 deletions .github/workflows/pull_request.yml

This file was deleted.

134 changes: 0 additions & 134 deletions README.md

This file was deleted.

Loading

0 comments on commit 0ee47c3

Please sign in to comment.