forked from Wurst-Imperium/Wurst7
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refs/heads/master' into Edit-MaceDMG
- Loading branch information
Showing
29 changed files
with
899 additions
and
513 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,10 +1,15 @@ | ||
# Code of Conduct | ||
|
||
1. **Before making a claim, try to prove yourself wrong.** | ||
Test it, if feasible. If not, google it to see if someone else has proven it wrong. This saves you from embarrassment and helps to stop the spread of misinformation at the same time. | ||
- Try your best to be respectful and composed. Be constructive with your criticisms, and don't intentionally upset people. When providing negative feedback, attack concepts rather than people. Detailed opinions and reasoning is good, "[project] bad/cursed" is not. | ||
|
||
2. **Before asking a question, try to answer it for yourself.** | ||
Test it, if feasible. If not, google it to see if someone else has asked it before. This saves you time (it is faster to google something than to wait for a human to reply) and saves us frustration (as a moderator, answering the same question over and over again is tiresome). | ||
- If you're getting heated and your discussions are becoming unproductive, consider stepping away from the conversation until you feel better and can think more clearly. | ||
|
||
3. **Don't be a jerk.** | ||
We appreciate discussion but do not accept personal attacks and calling people names. | ||
- Remember that everyone has a life as interesting, rich and varied as your own, and these experiences will shape everyone differently. If someone asks you to stop behaving in a certain way, you should listen to them (especially if it directly involves them). | ||
|
||
- Don't be afraid to help out if you see someone in need of support. We were all beginners at some point, and everyone benefits from working together on problems. | ||
|
||
- All voices are welcome, regardless of age, background, or level of experience. Try to be helpful and encouraging towards newcomers and those that need help, and don't make fun of them for knowing less than you do. | ||
|
||
- Avoid being disruptive - don't dump memes or complaints without relevance to the topic at hand, and don't try to interrupt discussions or force them onto another topic. | ||
|
||
- Don't ask to ask, just ask! Instead of asking for someone to help, state your problem directly. This makes it more likely for people to engage in conversation and try to help you. See: https://solhsa.com/dontask.html |
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,17 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "gradle" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
|
||
- package-ecosystem: "github-actions" | ||
# Directory should be `/` instead of `/.github/workflows` according to the docs. | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
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,98 @@ | ||
name: Publish Release | ||
run-name: "Publish release from ${{ github.ref_name }} branch" | ||
|
||
permissions: | ||
# Needed to push the tag. | ||
contents: write | ||
# Needed to close the milestone. | ||
issues: write | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
close_milestone: | ||
description: "Close milestone" | ||
required: true | ||
type: boolean | ||
default: true | ||
upload_backups: | ||
description: "Upload to backups server" | ||
required: true | ||
type: boolean | ||
default: true | ||
publish_github: | ||
description: "Publish to GitHub" | ||
required: true | ||
type: boolean | ||
default: true | ||
update_website: | ||
description: "Update WurstClient.net post (only works if there already is one)" | ||
required: true | ||
type: boolean | ||
default: false | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
env: | ||
WI_BACKUPS_API_KEY: ${{ secrets.WI_BACKUPS_API_KEY }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
# Include all tags in case the new tag already exists. | ||
fetch-tags: true | ||
|
||
- name: Set up Java 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: "21" | ||
distribution: "microsoft" | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v4 | ||
|
||
- name: Build | ||
run: ./gradlew build --stacktrace --warning-mode=fail | ||
|
||
- name: Create and push tag | ||
run: | | ||
MOD_VERSION=$(grep "mod_version" gradle.properties | cut -d'=' -f2 | tr -d ' \r') | ||
git config --global user.name "Wurst-Bot" | ||
git config --global user.email "[email protected]" | ||
git tag "$MOD_VERSION" | ||
git push origin "$MOD_VERSION" | ||
- name: Close milestone | ||
if: ${{ inputs.close_milestone }} | ||
run: ./gradlew closeMilestone --stacktrace | ||
|
||
- name: Upload backups | ||
if: ${{ inputs.upload_backups }} | ||
run: ./gradlew uploadBackups --stacktrace | ||
|
||
- name: Publish to GitHub | ||
if: ${{ inputs.publish_github }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.OLD_MCX_PUBLISH_TOKEN }} | ||
run: ./gradlew github --stacktrace | ||
|
||
- name: Trigger website update | ||
if: ${{ inputs.update_website }} | ||
env: | ||
GH_TOKEN: ${{ secrets.WURSTCLIENT_NET_PUBLISH_TOKEN }} | ||
run: | | ||
MOD_VERSION=$(grep "mod_version" gradle.properties | cut -d'=' -f2 | tr -d ' \r') | ||
WURST_VERSION=$(echo "$MOD_VERSION" | sed 's/^v//' | sed 's/-MC.*$//') | ||
MC_VERSION=$(grep "minecraft_version" gradle.properties | cut -d'=' -f2 | tr -d ' \r') | ||
FAPI_VERSION=$(grep "fabric_version" gradle.properties | cut -d'=' -f2 | tr -d ' \r') | ||
gh workflow run add_wurst_port.yml \ | ||
-R Wurst-Imperium/WurstClient.net \ | ||
-f wurst_version="$WURST_VERSION" \ | ||
-f mc_version="$MC_VERSION" \ | ||
-f fapi_version="$FAPI_VERSION" |
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.