chore: Update README information #11
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: Build ModdedIntegration | |
| on: push | |
| jobs: | |
| build: | |
| name: "Build and upload artifacts" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout branch from GitHub | |
| uses: actions/checkout@v2 | |
| - name: Set up JDK 8 | |
| uses: actions/setup-java@v2 | |
| with: | |
| java-version: 8 | |
| distribution: 'adopt' | |
| cache: gradle | |
| - name: Validate Gradle Wrapper | |
| uses: gradle/wrapper-validation-action@v1 | |
| - name: Set variables | |
| id: variables | |
| run: | | |
| echo "::set-output name=commit_branch::$GITHUB_REF_NAME" | |
| echo "::set-output name=commit_hash::$(git rev-parse --short "$GITHUB_SHA")" | |
| - name: Build using Gradle | |
| run: | | |
| chmod +x gradlew | |
| ./gradlew build -Pcommit_branch="${{ steps.variables.outputs.commit_branch }}" -Pcommit_hash="${{ steps.variables.outputs.commit_hash }}" | |
| - name: Upload JAR artifact to GitHub | |
| uses: actions/upload-artifact@master | |
| with: | |
| name: ModdedIntegration JAR | |
| path: build/libs/ |