This repository has been archived by the owner on Oct 1, 2024. It is now read-only.
Build releases #6
Workflow file for this run
This file contains 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 releases | |
on: | |
release: | |
types: [created] | |
jobs: | |
publish: | |
name: Build and upload | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 for x64 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
architecture: x64 | |
- name: Build with the Maven | |
run: mvn package | |
- name: Publish JUnit report | |
uses: mikepenz/action-junit-report@v4 | |
if: success() || failure() # Run even if the previous step fails | |
with: | |
report_paths: '**/build/test-results/test*/TEST-*.xml' | |
- name: Upload Jar Asset | |
uses: JasonEtco/upload-to-release@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
with: | |
args: target/IDK-1.2.5-pre-test.jar |