Merge pull request #1 from OtterCodes101/main

Add Github Action for compiling and make EPKCompiler export as resources.mc instead of resources.epk
This commit is contained in:
PeytonPlayz595 2023-08-02 11:42:32 -04:00 committed by GitHub
commit c521a6cf3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 2 deletions

20
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: Build with Gradle
on:
push:
jobs:
build-gradle-project:
runs-on: ubuntu-latest
steps:
- name: Checkout project sources
uses: actions/checkout@v3
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Run build with Gradle Wrapper
run: ./gradlew teavm
- name: Export data
uses: actions/upload-artifact@v3
with:
name: web
path: js/*

View File

@ -1,2 +1,2 @@
@echo off
java -jar CompilePackage.jar "../../resources" "../../js/resources.epk"
java -jar CompilePackage.jar "../../resources" "../../js/resources.mc"

View File

@ -1,2 +1,2 @@
#!/bin/sh
java -jar CompilePackage.jar "../../resources" "../../js/resources.epk"
java -jar CompilePackage.jar "../../resources" "../../js/resources.mc"