Skip to content

Commit

Permalink
👷 Add github actions
Browse files Browse the repository at this point in the history
`build.yml` copied directly from my other mod, BingusExtras
  • Loading branch information
CallMeEchoCodes committed Mar 3, 2024
1 parent 2095ef1 commit a809ccb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build
on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v1
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'microsoft'
- run: chmod +x ./gradlew
- run: ./gradlew build
- uses: actions/upload-artifact@v3
with:
name: Artifacts
path: build/libs/
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repositories {
loom {
runs {
create("datagen") {
inherit(runConfigs["server"])
server()
name("Minecraft Data")
vmArg("-Dfabric-api.datagen")
vmArg("-Dfabric-api.datagen.output-dir=${file("src/main/generated")}")
Expand Down

0 comments on commit a809ccb

Please sign in to comment.