Skip to content

Commit

Permalink
Add CI publication logic
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverlockwood committed Jan 2, 2024
1 parent a900c7d commit 72d1065
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: 'CI Build'

on:
workflow_dispatch:
push:
tags:
- 'release/*'

concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: false

jobs:
compile-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Java and Maven
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '8'
cache: 'maven'
cache-dependency-path: 'pom.xml'

- name: Compile
run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V

- name: Run tests
run: mvn test -B

- name: Copy publishing-config settings.xml into place
run: cp .ci.settings.xml $HOME/.m2/settings.xml

- name: Publish to Maven Central
run: ./publish.sh

0 comments on commit 72d1065

Please sign in to comment.