Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/.version

This file was deleted.

7 changes: 7 additions & 0 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: Build and Test
on: [pull_request, push, workflow_dispatch]

jobs:
build:
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-build-and-test.yaml@main
secrets: inherit
11 changes: 0 additions & 11 deletions .github/workflows/build.yaml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/check_version/action.yaml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/create-release-branch.yaml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/download_gpg_key/action.yaml

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/publish-major.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Publish Major Package
on:
workflow_dispatch:
inputs:
publish_to_maven:
description: 'True to publish the artifacts to maven repository, false to skip the step'
default: true
required: false
type: boolean
jobs:
build-publish-package:
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-java-publish-versioned-package.yaml@main
with:
release_type: 'Major'
publish_to_maven: ${{ inputs.publish_to_maven }}
secrets: inherit
16 changes: 16 additions & 0 deletions .github/workflows/publish-minor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Publish Minor Package
on:
workflow_dispatch:
inputs:
publish_to_maven:
description: 'True to publish the artifacts to maven repository, false to skip the step'
default: true
required: false
type: boolean
jobs:
build-publish-package:
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-java-publish-versioned-package.yaml@main
with:
release_type: 'Minor'
publish_to_maven: ${{ inputs.publish_to_maven }}
secrets: inherit
16 changes: 16 additions & 0 deletions .github/workflows/publish-patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Publish Patch Package
on:
workflow_dispatch:
inputs:
publish_to_maven:
description: 'True to publish the artifacts to maven repository, false to skip the step'
default: true
required: false
type: boolean
jobs:
build-publish-package:
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-java-publish-versioned-package.yaml@main
with:
release_type: 'Patch'
publish_to_maven: ${{ inputs.publish_to_maven }}
secrets: inherit
32 changes: 15 additions & 17 deletions .github/workflows/publish-snapshot.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
name: Publish Snapshot
on: workflow_dispatch

name: Publish Snapshot Package
on:
workflow_dispatch:
inputs:
publish_to_maven:
description: 'True to publish the artifacts to maven repository, false to skip the step'
default: true
required: false
type: boolean
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./.github/workflows/download_gpg_key
with:
key: ${{ secrets.GPG_KEY }}
- name: Check Version is snapshot
id: check_verion
uses: ./.github/workflows/check_version
with:
needs_snapshot: 'true'
- name: Deploy Snapshot
run: mvn -B -Drepo.id=ossrh -Drepo.login="{{ secrets.SONATYPE_REPO_ACCOUNT }}" -Drepo.pwd="${{ secrets.SONATYPE_REPO_PASSWORD }}" -Dgpg.passphrase="${{ secrets.GPG_PASSPHRASE }}" clean deploy
build-publish-package:
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-java-publish-versioned-package.yaml@main
with:
release_type: 'Snapshot'
publish_to_maven: ${{ inputs.publish_to_maven }}
secrets: inherit
47 changes: 0 additions & 47 deletions .github/workflows/release-major-minor.yaml

This file was deleted.

47 changes: 0 additions & 47 deletions .github/workflows/release-patch.yaml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/workflows/release.yaml

This file was deleted.

1 change: 1 addition & 0 deletions version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", "version": "1.3", "publicReleaseRefSpec": [ "^refs/heads/master$", "^refs/heads/v\\d+(?:\\.\\d+)?$" ], "cloudBuild": { "setVersionVariables": true, "buildNumber": { "enabled": true, "includeCommitId": { "when": "always" } } } }