Skip to content

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
way2muchnoise authored Apr 1, 2024
1 parent edb21c1 commit e49064f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: 'Build'

on:
push:

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'microsoft'
java-version: '17'
cache: 'gradle'
- name: Build with Gradle
run: ./gradlew clean build
- name: Publish CurseForge
run: ./gradlew :Forge:publishCurseForge :Fabric:publishCurseForge :NeoForge:publishCurseForge
- name: Publish Modrinth
run: ./gradlew :Forge:modrinth :Fabric:modrinth :NeoForge:modrinth
- uses: actions/upload-artifact@v3
with:
if-no-files-found: error
path: output/*[^shadow].jar

0 comments on commit e49064f

Please # to comment.