Create Testing Build #15
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: Create Testing Build | |
| on: | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Append -testing to version | |
| run: | | |
| sed -i 's/^greate_version=\(.*\)/greate_version=\1-testing/' gradle.properties | |
| - name: Get Version | |
| uses: BrycensRanch/read-properties-action@v1 | |
| id: version | |
| with: | |
| file: gradle.properties | |
| property: greate_version | |
| - name: Setup Gradle & Build | |
| uses: gradle/actions/setup-gradle@v5 | |
| with: | |
| gradle-version: '8.6' | |
| cache-disabled: true | |
| - run: gradle build | |
| - name: Upload Testing Build | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: greate-${{ steps.version.outputs.greate_version }} | |
| path: build/libs/*.jar |