diff --git a/.github/workflows/build2.yml b/.github/workflows/build2.yml new file mode 100644 index 0000000..6f3c130 --- /dev/null +++ b/.github/workflows/build2.yml @@ -0,0 +1,56 @@ +name: Build 1.20.1 + +on: + push: + branches: + - '1.20.1/**' + pull_request: + branches: + - '1.20.1/**' + workflow_dispatch: + branches: + - '1.20.1/**' +env: + JAVA_VERSION: 17 + MODRINTH_TOKEN: ${{ secrets.PUBLISH_MODRINTH_TOKEN }} + CURSEFORGE_TOKEN: ${{ secrets.PUBLISH_CURSEFORGE_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PUBLISH_GITHUB_TOKEN }} + CURSEFORGE_ID: 1027757 + MODRINTH_ID: nR8D9Tc2 + +permissions: + contents: write + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Check Environment Variables + run: env + + - name: Checkout Repository + uses: actions/checkout@v3 + with: + submodules: true + + - name: Setup Java + uses: actions/setup-java@v2 + with: + distribution: "temurin" + java-version: 17 + + - name: Make Gradle Wrapper Executable + if: ${{ runner.os != 'Windows' }} + run: chmod +x ./gradlew + + - name: Build + run: ./gradlew clean build + + - name: Artifact + uses: actions/upload-artifact@v4 + with: + name: artifact + path: | + ./common/build/libs/* + ./fabric/build/libs/* + ./forge/build/libs/*