From 75e9003f3f782ad965b5f0a7f0aff90d478a64c2 Mon Sep 17 00:00:00 2001 From: Gerald Date: Fri, 16 May 2025 10:44:32 +0200 Subject: [PATCH] update to gihub actions --- .github/workflows/bump-version.yml | 21 ----------- .github/workflows/pipeline.yml | 28 +++++++++++++++ .travis.yml | 57 ------------------------------ pom.xml | 10 +++--- 4 files changed, 33 insertions(+), 83 deletions(-) delete mode 100644 .github/workflows/bump-version.yml create mode 100644 .github/workflows/pipeline.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml deleted file mode 100644 index 8325721..0000000 --- a/.github/workflows/bump-version.yml +++ /dev/null @@ -1,21 +0,0 @@ - -name: Bump version -on: - push: - branches: - - master - pull_request: -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - with: - fetch-depth: '0' - - name: Bump version and push tag - uses: anothrNick/github-tag-action@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - RELEASE_BRANCHES: master - DEFAULT_BUMP: patch - WITH_V: false diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml new file mode 100644 index 0000000..7f5349d --- /dev/null +++ b/.github/workflows/pipeline.yml @@ -0,0 +1,28 @@ +name: PIPELINE + +on: + push: + branches: + - 'master' + workflow_dispatch: + +jobs: + bump: + uses: UnterrainerInformatik/bump-semver-workflow/.github/workflows/workflow.yml@master + + build: + name: Build and publish to Maven Central 🚀 + needs: bump + uses: UnterrainerInformatik/maven-central-workflow/.github/workflows/workflow.yml@master + with: + major_version: ${{ needs.bump.outputs.major_version }} + minor_version: ${{ needs.bump.outputs.minor_version }} + build_version: ${{ needs.bump.outputs.build_version }} + maven_profiles: release-to-sonatype + maven_args: -Dmaven.test.skip=true + secrets: + SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} + SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} + GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }} + GPG_OWNERTRUST: ${{ secrets.GPG_OWNERTRUST }} + GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 79426e8..0000000 --- a/.travis.yml +++ /dev/null @@ -1,57 +0,0 @@ -######################## -### VARIABLES NEEDED ### -######################## -# RELEASE Set to true to release a ZIP-file on github (there has to be a -# target/ directory for that) -# -### Deploy -# GITHUB_API_KEY The api-key of github used to push a release-file -# GPG_EXECUTABLE should be 'gpg2' -# GPG_OWNERTRUST The 'ownertrust' export from the key-file used to sign (base64 encoded) -# GPG_SECRET_KEYS The 'secret-key' export from the key-file used to sign (base64 encoded) -# GPG_PASSPHRASE The passphrase used when generating the GPG-key you're now importing -# MAVEN_CENTRAL 'true' if you want to deploy to maven-central; 'false' or undefined if not -# SONATYPE_PASSWORD The password of your sonatype-account used to push to maven-central -# SONATYPE_USERNAME The userName of your sonatype-account used to push to maven-central -# -#################### -### GENERAL INFO ### -#################### -# - The 'deploy' step in Travis isn't the same process as the rest. So you have to re-source -# the functions into that process. More than that it isn't a full sh process like with the -# script-phase. So you cannot even source from there directly. That's why the source -# command is IN the deploy.sh script. - -branches: - only: - - master -language: java -jdk: - - openjdk21 -before_install: - - git clone https://github.com/UnterrainerInformatik/Travis-Scripts.git travis - - source travis/functions.Java.sh - - tr_setProjectSubdir Java - - source $TRAVIS/before_install.sh -install: - - source $TRAVIS/install.sh -before_script: - - source $TRAVIS/before_script.sh -script: - - source $TRAVIS/script.sh - -before_deploy: ./$TRAVIS/before_deploy.sh -deploy: - - provider: script - skip_cleanup: true - script: ./$TRAVIS/deploy.sh - on: - branch: master - - provider: releases - skip_cleanup: true - overwrite: true - api_key: $GITHUB_API_KEY - file: $ARTIFACT_ID.$POM_VERSION.zip - on: - tags: true - branch: master diff --git a/pom.xml b/pom.xml index 4cb4fad..f70cc1b 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ info.unterrainer.commons parent-javalin-pom - 0.1.2 + 1.0.2 @@ -15,7 +15,7 @@ 4.0.0 http-server - 0.3.22 + 1.0.0 HttpServer jar @@ -28,17 +28,17 @@ info.unterrainer.commons jre-utils - 0.3.7 + 1.0.1 info.unterrainer.commons rdb-utils - 0.2.3 + 1.0.1 info.unterrainer.commons serialization - 0.2.3 + 1.0.1 jakarta.persistence