Release 1.0 #8
Workflow file for this run
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 and Release JAR | |
| on: | |
| release: | |
| types: [created] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v2 | |
| with: | |
| distribution: 'temurin' # Use any distribution you prefer | |
| java-version: '21' # Set to your Java version | |
| - name: Build project with Gradle | |
| run: ./gradlew build | |
| - name: List files in build directory | |
| run: ls -la ./build/libs | |
| - name: Upload JAR file to release | |
| uses: actions/upload-release-asset@v1 | |
| with: | |
| upload_url: ${{ github.event.release.upload_url }} | |
| asset_path: ./build/libs/Better TPA-1.0-alpha.jar # Adjust the path if needed | |
| asset_name: Better TPA-1.0-alpha.jar | |
| asset_content_type: application/java-archive |