I hate architectury so much #44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Nightly Build | |
| on: push | |
| jobs: | |
| build: | |
| name: Compile and Release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Java 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| cache: 'gradle' | |
| - name: Grant Execute Permissions | |
| run: chmod +x gradlew | |
| - name: Set outputs | |
| id: vars | |
| run: | | |
| echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | |
| - name: Build with Gradle | |
| run: | | |
| CURRENT_VERSION=$(grep "^mod_version=" gradle.properties | cut -d'=' -f2) | |
| ./gradlew build -Pmod_version="${CURRENT_VERSION}-${{ steps.vars.outputs.sha_short }}" | |
| - name: Upload Build Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: InteractiveMC-Build-${{ steps.vars.outputs.sha_short }} | |
| path: | | |
| fabric/build/libs/*.jar | |
| neoforge/build/libs/*.jar | |
| # todo add gametest |