This repository has been archived by the owner on Oct 20, 2024. It is now read-only.
-
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 remote-tracking branch 'refs/remotes/origin/main' into 1.20.4-f…
…abric # Conflicts: # .github/workflows/build.yml # src/main/java/me/melontini/commander/impl/builtin/brigadier/ArithmeticaCommand.java # src/main/java/me/melontini/commander/impl/mixin/AdvancementRewardsMixin.java
- Loading branch information
Showing
37 changed files
with
276 additions
and
251 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,127 +1,12 @@ | ||
|
||
name: build | ||
on: | ||
push: | ||
workflow_dispatch: | ||
inputs: | ||
version_type: | ||
description: "The type of this version. e.g alpha" | ||
type: choice | ||
default: beta | ||
options: | ||
- release | ||
- beta | ||
- alpha | ||
required: false | ||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
if: | | ||
!contains(github.event.head_commit.message, '[ci skip]') | ||
outputs: | ||
version_info: ${{ steps.get_version.outputs.version_info }} | ||
version_plain: ${{ steps.get_version.outputs.version_plain }} | ||
steps: | ||
- name: checkout repository | ||
uses: actions/[email protected] | ||
- name: validate gradle wrapper | ||
uses: gradle/[email protected] | ||
- name: setup jdk | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'temurin' | ||
java-version: 17 | ||
cache: gradle | ||
- name: make gradle wrapper executable | ||
run: chmod +x ./gradlew | ||
- name: build | ||
run: ./gradlew build | ||
- name: get version #https://stackoverflow.com/questions/71089787/how-to-get-version-name-from-android-gradle-file-in-github-actions | ||
id: get_version | ||
run: | | ||
echo "version_info=$(${{github.workspace}}/gradlew -q printVersionName)" >> $GITHUB_OUTPUT | ||
echo "version_plain=$(${{github.workspace}}/gradlew -q printVersion)" >> $GITHUB_OUTPUT | ||
- name: capture build artifacts | ||
uses: actions/[email protected] | ||
with: | ||
name: Artifacts | ||
path: build/libs/ | ||
- name: capture processed mappings | ||
uses: actions/[email protected] | ||
with: | ||
name: Mappings | ||
path: .gradle/commander/mappings/ | ||
|
||
packages: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout repository | ||
uses: actions/[email protected] | ||
- name: setup jdk | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'temurin' | ||
java-version: 17 | ||
cache: gradle | ||
- uses: actions/[email protected] | ||
with: | ||
name: Mappings | ||
path: .gradle/commander/mappings/ | ||
- uses: geekyeggo/delete-artifact@v5 | ||
with: | ||
name: Mappings | ||
- name: make gradle wrapper executable | ||
run: chmod +x ./gradlew | ||
- name: publish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
./gradlew publish | ||
publish: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event_name == 'workflow_dispatch' }} | ||
steps: | ||
- name: checkout repository | ||
uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
with: | ||
name: Artifacts | ||
path: build/libs | ||
|
||
- name: publish release | ||
uses: Kir-Antipov/[email protected] | ||
with: | ||
version-type: ${{ inputs.version_type }} | ||
changelog-file: CHANGELOG.md | ||
name: ${{ needs.build.outputs.version_info }} | ||
version: ${{ needs.build.outputs.version_plain }} | ||
|
||
game-versions: | | ||
1.20.4 | ||
loaders: | | ||
fabric | ||
java: | | ||
17 | ||
files: | | ||
build/libs/!(*-@(dev|sources|javadoc|dependencies|full-dependencies)).jar | ||
build/libs/*-@(dev|sources|javadoc).jar | ||
github-tag: ${{ needs.build.outputs.version_plain }} | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
github-commitish: ${{ github.sha }} | ||
github-prerelease: false | ||
|
||
modrinth-id: 86bUtxWv | ||
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | ||
modrinth-featured: true | ||
modrinth-unfeature-mode: subset | ||
modrinth-dependencies: | | ||
fabric-api(required) | ||
dark-matter(embedded) | ||
uses: constellation-mc/actions/.github/workflows/gradle-build.yml@main | ||
with: | ||
java: 17 | ||
gradle_tasks: spotbugs | ||
reviewdog: | | ||
cat ./build/reports/spotbugs/main/spotbugs.sarif | reviewdog -name="spotbugs" -f=sarif -reporter=github-check -level=warning |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
name: publish | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version_type: | ||
description: "The type of this version. e.g alpha" | ||
type: choice | ||
default: BETA | ||
options: | ||
- STABLE | ||
- BETA | ||
- ALPHA | ||
- NONE | ||
required: false | ||
|
||
jobs: | ||
publish: | ||
uses: constellation-mc/actions/.github/workflows/mc-publish.yml@main | ||
with: | ||
java: 17 | ||
version_type: ${{ inputs.version_type }} | ||
secrets: inherit |
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,7 +1,6 @@ | ||
### What's New: | ||
|
||
* Exposed Expressions in the `api` package. | ||
* You can now specify `commander:commands` in advancement rewards. | ||
* Mappings are no longer downloaded on startup. | ||
* Added shaded licenses. | ||
* Fixed conditioned selector crash on 1.20.4. | ||
* Added entity parameter to `cmd:explode`. The entity will be marked as the "creator" of the explosion and other entities will redirect their anger to the entity if affected by the explosion. | ||
* Added fire parameter to `cmd:explode`. Creates fire, if true. | ||
* Fixed `double` casts converting numbers to scientific notation. | ||
* `long` and `int` casts no longer actually convert to their types, instead they truncate the trailing zeros. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<FindBugsFilter> | ||
<Match> | ||
<!-- Must be a full match --> | ||
<Class name="~.*\.mixin\..*Mixin" /> | ||
<Bug pattern="BC_IMPOSSIBLE_CAST, MS_SHOULD_BE_FINAL" /> | ||
</Match> | ||
<Match> | ||
<Bug pattern="EI_EXPOSE_REP, EI_EXPOSE_REP2, PA_PUBLIC_PRIMITIVE_ATTRIBUTE, BC_UNCONFIRMED_CAST" /> | ||
</Match> | ||
</FindBugsFilter> |
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
Oops, something went wrong.