Skip to content

v0.0.7

v0.0.7 #5

Workflow file for this run

name: Maven Package
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Publish to GitHub Packages
run: |
mvn deploy:deploy-file \
-DgroupId=com.github.${{ github.repository_owner }} \
-DartifactId=ShellApiLogOptimizer \
-Dversion=0.0.1-SNAPSHOT \
-Dpackaging=jar \
-Dfile=target/ShellApiLogOptimizer-0.0.1-SNAPSHOT.jar \
-DrepositoryId=github \
-Durl=https://maven.pkg.github.com/${{ github.repository }} \
-DgeneratePom=true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}