Skip to content

Commit

Permalink
feat: configure Github actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdethier committed Jul 8, 2024
1 parent d05fd2c commit 2ca83e7
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/maven-publish-snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish snapshot to the Sonatype OSSRH

on: workflow_dispatch

jobs:
publish-snapshot:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: "11"
distribution: "temurin"
cache: maven
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD

- name: Publish snapshot package
run: mvn -B -U deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
22 changes: 22 additions & 0 deletions .github/workflows/maven-verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish snapshot to the Sonatype OSSRH

on:
push:
branches: [ "master" ]
pull_request:

jobs:
publish-snapshot:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: "11"
distribution: "temurin"
cache: maven

- name: Verify
run: mvn -B -U verify

0 comments on commit 2ca83e7

Please sign in to comment.