mirror of
https://github.com/Lucaslah/WeatherChanger.git
synced 2026-01-03 03:57:50 +00:00
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:
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@@ -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
|
||||
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user