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 0f516bd..6972479 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .* +!.github !.gitignore build/ out/ diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index 1c7b7aa..0000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,28 +0,0 @@ -trigger: - branches: - include: - - refs/heads/* - - refs/tags/* -pr: - branches: - include: - - master - -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