Skip to content

Release

Release #67

Workflow file for this run

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Release
on:
workflow_dispatch:
release:
types: [ created ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Release
uses: qcastel/github-actions-maven-release@master
env:
JAVA_HOME: /usr/lib/jvm/java-17-openjdk/
with:
access-token: ${{ secrets.GITHUB_ACCESS_TOKEN }}
release-branch-name: "main"
maven-options: "-DignoreSnapshots=true"
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
maven-repo-server-id: github
maven-repo-server-username: ${{ secrets.MVN_REPO_PRIVATE_REPO_USER }}
maven-repo-server-password: ${{ secrets.MVN_REPO_PRIVATE_REPO_PASSWORD }}
git-release-bot-name: ${{ secrets.BOT_NAME }}
git-release-bot-email: ${{ secrets.BOT_EMAIL }}