Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrbysco committed May 1, 2024
1 parent 88d240d commit 4f11bff
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
Expand All @@ -17,26 +17,30 @@ jobs:
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew build
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: NeoForgeArtifact
path: ./neoforge/build/libs/*.jar
- uses: actions/upload-artifact@v4
with:
name: ForgeArtifact
path: ./Forge/build/libs/*.jar
- uses: actions/upload-artifact@v3
path: ./forge/build/libs/*.jar
- uses: actions/upload-artifact@v4
with:
name: FabricArtifact
path: ./Fabric/build/libs/*.jar
path: ./fabric/build/libs/*.jar
- name: Publish to maven
if: contains(github.event.head_commit.message, '[push]') || contains(github.event.head_commit.message, '[build]')
env:
SAP_SECRET: ${{ secrets.SAP_SECRET }}
run: ./gradlew publish
- name: Publish To Curseforge
if: contains(github.event.head_commit.message, '[publish]') || contains(github.event.head_commit.message, '[curseforge]')
env:
CURSEFORGE_KEY: ${{ secrets.CURSEFORGE_KEY }}
run: ./gradlew curseforge
run: ./gradlew curseforge --stacktrace
- name: Publish To Modrinth
if: contains(github.event.head_commit.message, '[publish]') || contains(github.event.head_commit.message, '[modrinth]')
env:
MODRINTH_KEY: ${{ secrets.MODRINTH_KEY }}
run: ./gradlew modrinth
- name: Publish to maven
if: contains(github.event.head_commit.message, '[push]') || contains(github.event.head_commit.message, '[build]')
env:
SAP_SECRET: ${{ secrets.SAP_SECRET }}
run: ./gradlew publish
run: ./gradlew modrinth --stacktrace

0 comments on commit 4f11bff

Please sign in to comment.