Skip to content

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: Publish package to the Github Maven Repository
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Publish to GitHub Packages Apache Maven
run: mvn deploy --file try-monad/pom.xml
env:
GITHUB_TOKEN: ${{ secrets.MAVEN_GITHUB_TOKEN }}