Skip to content

chore(client): version release #8

chore(client): version release

chore(client): version release #8

# 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-client
on:
workflow_dispatch:
push:
branches: [ main ]
permissions:
contents: read
packages: write
jobs:
deploy-client:
if: startsWith(github.event.head_commit.message, 'chore(client)') && endsWith(github.event.head_commit.message, 'version release')
runs-on: ubuntu-latest
env:
MVN: mvn --show-version --batch-mode
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'
- name: Publish to GitHub Packages Apache Maven
run: $MVN -pl interweb-client -am deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}