Skip to content

Commit

Permalink
make mapper accessible for external usage
Browse files Browse the repository at this point in the history
  • Loading branch information
rvullriede committed Jul 29, 2024
1 parent bb5c90f commit 2b9572d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: maven-build
name: build-on-push

on:
push:
Expand All @@ -11,11 +11,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
- name: setup-jdk
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
cache: maven
- name: Build with Maven
- name: maven-build
run: mvn --batch-mode --update-snapshots package
15 changes: 12 additions & 3 deletions .github/workflows/dependabot-auto-approve.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: dependabot-auto-approve
name: dependabot-pr-auto-merge
on: pull_request

permissions:
Expand All @@ -7,15 +7,24 @@ permissions:
jobs:
dependabot:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
repository-projects: write
if: github.actor == 'dependabot[bot]'
steps:
- name: Dependabot metadata
- name: dependabot-pr-fetch-metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Approve a PR
- name: dependabot-pr-approve
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: dependabot-pr-auto-merge
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
name: maven-publish-release
name: publish-on-release
on:
release:
types: [ created ]

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Install gpg secret key
run: |
Expand All @@ -14,7 +17,7 @@ jobs:
# Verify gpg secret key
gpg --list-secret-keys --keyid-format LONG
- uses: actions/checkout@v4
- name: Set up JDK
- name: setup-jdk
uses: actions/setup-java@v4
with:
java-version: 21
Expand All @@ -23,7 +26,7 @@ jobs:
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Publish package
- name: publish-on-maven-central
run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} -P osslabz-release clean deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
Expand Down

0 comments on commit 2b9572d

Please sign in to comment.