diff --git a/.github/workflows/build-and-publish.yaml b/.github/workflows/build-and-publish.yaml deleted file mode 100644 index 917c385..0000000 --- a/.github/workflows/build-and-publish.yaml +++ /dev/null @@ -1,21 +0,0 @@ -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 deleted file mode 100644 index 3f95dbe..0000000 --- a/.github/workflows/release.yaml +++ /dev/null @@ -1,25 +0,0 @@ -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 e2a8d6e..e670f04 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ .* !.gitignore -!.github !.travis.yml build/ out/ diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..ceb0cba --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,27 @@ +trigger: + branches: + include: + - refs/heads/* + - refs/tags/* +pr: + branches: + include: + - master + +variables: +- group: sonarqube +- group: sign +- group: ossrh + +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