Skip to content

Commit

Permalink
Fix GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
lunwang-ttd committed Oct 10, 2023
1 parent 5682ea8 commit f39c079
Show file tree
Hide file tree
Showing 12 changed files with 76 additions and 246 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
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
with:
java_version: "11"
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.

17 changes: 17 additions & 0 deletions .github/workflows/publish-major.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
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 }}
java_version: "11"
secrets: inherit
17 changes: 17 additions & 0 deletions .github/workflows/publish-minor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
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 }}
java_version: "11"
secrets: inherit
17 changes: 17 additions & 0 deletions .github/workflows/publish-patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
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 }}
java_version: "11"
secrets: inherit
33 changes: 16 additions & 17 deletions .github/workflows/publish-snapshot.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
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 }}
java_version: "11"
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.

0 comments on commit f39c079

Please sign in to comment.