Skip to content

Merge pull request #145 from BaseMC/develop #4

Merge pull request #145 from BaseMC/develop

Merge pull request #145 from BaseMC/develop #4

Workflow file for this run

name: Release
on:
workflow_dispatch:
push:
branches: [ master ]
jobs:
build_release:
name: Build & Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup - Java
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
- name: Setup - Restore Cache
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-:
- name: Build - Maven Package
run: mvn -B clean package -DskipTests
- name: Test - Maven Verify
run: mvn -B clean verify
- name: Release - Create Draft for Release
id: create_draft
uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release - Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_draft.outputs.upload_url }}
asset_path: ./target/javgent-standalone.jar
asset_name: javgent-standalone.jar
asset_content_type: application/java-archive