Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Commit

Permalink
Added build and deploy scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
fugerit79 committed Oct 23, 2024
1 parent c4acb8d commit f3f3ce8
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build_maven_package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# CI with maven build and scan
#
# version 1.1.0
#
# see : https://universe.fugerit.org/src/docs/conventions/workflows/build_maven_package.html

name: CI maven build and scan

on:
# Trigger analysis when pushing in master or pull requests, and when creating
# a pull request.
push:
branches:
- main
- develop
- branch-preview
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: fugerit-org/psychic-actions/maven-build-scan@stable
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
sonar-token: ${{ secrets.SONAR_TOKEN }}
disable-maven-dependency-submission: ${{ vars.DISABLE_MAVEN_DEPENDENCY_SUBMISSION }}
38 changes: 38 additions & 0 deletions .github/workflows/deploy_maven_package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# CI deploy maven package
#
# version 1.0.0
#
# see : https://universe.fugerit.org/src/docs/conventions/workflows/deploy_maven_package.html

name: CI deploy maven package

on:
push:
branches:
- branch-deploy

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@main
- name: Set up JDK 17
uses: actions/setup-java@main
with:
java-version: '17'
distribution: 'corretto'
cache: maven
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Import gpg
run: echo -e "${{ secrets.PASSPHRASE }}" | echo -e "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --allow-secret-key-import --import
- name: Build package
run: mvn clean install -P full,coverage,metadata
- name: Publish package
run: mvn --batch-mode deploy -P doRelease
env:
MAVEN_USERNAME: ${{ secrets.OSS_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSS_PASSWORD }}
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- build and deploy scripts
- EvalKts interface

0 comments on commit f3f3ce8

Please sign in to comment.