Update build scripts

- add publish to modrinth script
- add publish to curseforge script
- update build and release ci
- fix spelling in README.md

Signed-off-by: Lucas Petrino <nsx1lucas@gmail.com>
This commit is contained in:
2024-01-16 14:52:17 +13:00
parent 5ab33b1e63
commit b210d0540e
6 changed files with 78 additions and 6 deletions

View File

@@ -8,6 +8,8 @@ on:
jobs:
build:
runs-on: ubuntu-latest
env:
CI_DEV_BUILD: true
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
@@ -15,6 +17,8 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
- name: Setup build number
run: echo "BUILD_NUMBER=$(echo $GITHUB_SHA | cut -c 1-6)" >> $GITHUB_ENV
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Build with Gradle
@@ -24,5 +28,7 @@ jobs:
- name: Upload Build Results
uses: actions/upload-artifact@v3
with:
name: build
path: build/libs/*.jar
name: weather-changer-build
path: |
fabric/build/**/*.jar
forge/build/**/*.jar

View File

@@ -25,7 +25,9 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: build
path: build/libs/*.jar
path: |
fabric/build/**/*.jar
forge/build/**/*.jar
release:
runs-on: ubuntu-latest
@@ -40,7 +42,7 @@ jobs:
- name: Create Release
run: |
mkdir dist
mv build/*.jar dist
mv build/**/*.jar dist
pushd dist
shasum -a 256 * > checksums.txt