From 127f7cbf103c4186a98e7b43f75949a18b831e06 Mon Sep 17 00:00:00 2001 From: MichaelKora Date: Wed, 18 Oct 2023 10:16:20 +0200 Subject: [PATCH] Migrate azure pipeline to GH-action --- .github/workflows/build-and-publish.yaml | 21 ++++++++++++++++++++ .github/workflows/release.yaml | 25 ++++++++++++++++++++++++ .gitignore | 1 + 3 files changed, 47 insertions(+) create mode 100644 .github/workflows/build-and-publish.yaml create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/build-and-publish.yaml b/.github/workflows/build-and-publish.yaml new file mode 100644 index 0000000..917c385 --- /dev/null +++ b/.github/workflows/build-and-publish.yaml @@ -0,0 +1,21 @@ +name: Build and Publish + +on: + push: + tags: ["**"] + branches: ["**"] + +jobs: + build-and-publish: + name: Java Gradle + uses: bakdata/ci-templates/.github/workflows/java-gradle-library.yaml@1.39.0 + secrets: + sonar-token: ${{ secrets.SONARCLOUD_TOKEN }} + sonar-organization: ${{ secrets.SONARCLOUD_ORGANIZATION }} + signing-secret-key-ring: ${{ secrets.SONATYPE_SIGNING_SECRET_KEY_RING }} + signing-key-id: ${{ secrets.SONATYPE_SIGNING_KEY_ID }} + signing-password: ${{ secrets.SONATYPE_SIGNING_PASSWORD }} + ossrh-username: ${{ secrets.SONATYPE_OSSRH_USERNAME }} + ossrh-password: ${{ secrets.SONATYPE_OSSRH_PASSWORD }} + github-username: ${{ secrets.GH_USERNAME }} + github-token: ${{ secrets.GH_TOKEN }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..3f95dbe --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,25 @@ +name: Release + +on: + workflow_dispatch: + inputs: + release-type: + description: "The scope of the release (major, minor or patch)." + type: choice + required: true + default: patch + options: + - patch + - minor + - major + +jobs: + java-gradle-release: + name: Java Gradle + uses: bakdata/ci-templates/.github/workflows/java-gradle-release.yaml@1.39.0 + with: + release-type: "${{ inputs.release-type }}" + secrets: + github-email: "${{ secrets.GH_EMAIL }}" + github-username: "${{ secrets.GH_USERNAME }}" + github-token: "${{ secrets.GH_TOKEN }}" diff --git a/.gitignore b/.gitignore index e670f04..e2a8d6e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .* !.gitignore +!.github !.travis.yml build/ out/