Skip to content

Commit 39b7f79

Browse files
authored
common workflows (#31)
1 parent dbef16b commit 39b7f79

12 files changed

+85
-177
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: Build and Test
2+
3+
on: [pull_request, push, workflow_dispatch]
4+
5+
jobs:
6+
build:
7+
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-build-and-test.yaml@main
8+
secrets: inherit

.github/workflows/build.yaml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/workflows/create-release-branch.yaml

Lines changed: 0 additions & 39 deletions
This file was deleted.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Publish Major Package
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
publish_to_maven:
6+
description: 'True to publish the artifacts to maven repository, false to skip the step'
7+
default: true
8+
required: false
9+
type: boolean
10+
jobs:
11+
build-publish-package:
12+
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-java-publish-versioned-package.yaml@main
13+
with:
14+
release_type: 'Major'
15+
publish_to_maven: ${{ inputs.publish_to_maven }}
16+
secrets: inherit
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Publish Minor Package
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
publish_to_maven:
6+
description: 'True to publish the artifacts to maven repository, false to skip the step'
7+
default: true
8+
required: false
9+
type: boolean
10+
jobs:
11+
build-publish-package:
12+
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-java-publish-versioned-package.yaml@main
13+
with:
14+
release_type: 'Minor'
15+
publish_to_maven: ${{ inputs.publish_to_maven }}
16+
secrets: inherit
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Publish Patch Package
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
publish_to_maven:
6+
description: 'True to publish the artifacts to maven repository, false to skip the step'
7+
default: true
8+
required: false
9+
type: boolean
10+
jobs:
11+
build-publish-package:
12+
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-java-publish-versioned-package.yaml@main
13+
with:
14+
release_type: 'Patch'
15+
publish_to_maven: ${{ inputs.publish_to_maven }}
16+
secrets: inherit
Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
name: Publish Snapshot
2-
on: workflow_dispatch
3-
1+
name: Publish Snapshot Package
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
publish_to_maven:
6+
description: 'True to publish the artifacts to maven repository, false to skip the step'
7+
default: true
8+
required: false
9+
type: boolean
410
jobs:
5-
publish:
6-
runs-on: ubuntu-latest
7-
steps:
8-
- uses: actions/checkout@v2
9-
- uses: ./.github/workflows/download_gpg_key
10-
with:
11-
key: ${{ secrets.GPG_KEY }}
12-
- name: Check Version is snapshot
13-
id: check_verion
14-
uses: ./.github/workflows/check_version
15-
with:
16-
needs_snapshot: 'true'
17-
- name: Deploy Snapshot
18-
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
11+
build-publish-package:
12+
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-java-publish-versioned-package.yaml@main
13+
with:
14+
release_type: 'Snapshot'
15+
publish_to_maven: ${{ inputs.publish_to_maven }}
16+
secrets: inherit

.github/workflows/release-major-minor.yaml

Lines changed: 0 additions & 47 deletions
This file was deleted.

.github/workflows/release-patch.yaml

Lines changed: 0 additions & 47 deletions
This file was deleted.

.github/workflows/release.yaml

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)