diff --git a/.github/workflows/build-and-publish.yaml b/.github/workflows/build-and-publish.yaml new file mode 100644 index 0000000..6f0ea26 --- /dev/null +++ b/.github/workflows/build-and-publish.yaml @@ -0,0 +1,23 @@ +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.40.5 + with: + java-version: 17 + 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..b139422 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,26 @@ +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.40.5 + with: + java-version: 17 + 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 4a2f53f..1f930bc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .* !.gitignore +!.github !.gitlab-ci.yml build/ out/ diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index f6b92af..0000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,24 +0,0 @@ -trigger: - branches: - include: - - refs/heads/* - - refs/tags/* - -variables: - - group: sonarqube - - group: sign - - group: ossrh - - group: changelog - -resources: - repositories: - - repository: templates - type: github - name: bakdata/bakdata-project-templates - endpoint: bot - -jobs: - - template: azure/gradle/build.yml@templates - - template: azure/gradle/create_tag_version.yml@templates - - template: azure/gradle/upload_release.yml@templates - - template: azure/gradle/upload_snapshot.yml@templates