Skip to content

fix: registering event subscriber #17

fix: registering event subscriber

fix: registering event subscriber #17

name: Build and Publish EDC Extension
on:
push:
branches: ["main"]
paths: ["logging-house-client/**/*"]
pull_request:
branches: ["main"]
jobs:
build-and-publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3
- name: Build package
if: ${{ github.ref != 'refs/heads/main' }}
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629
with:
arguments: build
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ github.token }}
- name: Publish package
if: ${{ github.ref == 'refs/heads/main' }}
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629
with:
arguments: publish
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ github.token }}