Skip to content

Merge pull request #214 from mimno/raghu298-feature/replace-bsh-with-… #15

Merge pull request #214 from mimno/raghu298-feature/replace-bsh-with-…

Merge pull request #214 from mimno/raghu298-feature/replace-bsh-with-… #15

Workflow file for this run

# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
name: Maven Package
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Build and Test
run: mvn --batch-mode verify
- name: Upload Test Results
uses: actions/upload-artifact@v3
if: always()
with:
name: test-results
path: target/surefire-reports/
- name: Publish to GitHub Packages using Apache Maven
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
run: mvn --batch-mode deploy -P publish-on-github-packages -DskipTests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}