Skip to content

Commit

Permalink
OZ-438: Use shared GitHub Actions workflow. (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliouzbett authored Feb 2, 2024
1 parent 1edd1f1 commit abaf119
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 14 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/build-publish.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
release:
types: [published]

jobs:
validate:
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-build-test.yml@main
with:
java-version: "8"
secrets:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}

pre-release:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
needs: validate
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-publish.yml@main
secrets:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}

release:
if: ${{ github.event_name == 'release' }}
needs: validate
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-publish.yml@main
secrets:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}

0 comments on commit abaf119

Please sign in to comment.