Skip to content

Commit

Permalink
fix(ci): fix datahub jar publish action (datahub-project#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
shirshanka authored and Masterchen09 committed Sep 4, 2022
1 parent e38f9c1 commit 0bed5ac
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/publish-datahub-jars.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
name: Publish Datahub Client

on:
workflow_run:
workflows: ["build & test"]
types:
- completed

release:
types: [published, edited]

Expand All @@ -23,18 +18,19 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
outputs:
publish-enabled: ${{ steps.publish-enabled.outputs.defined }}
publish-enabled: ${{ steps.publish-enabled.outputs.publish }}
steps:
- id: publish-enabled
if: "${{ secrets.SIGNING_KEY != '' }}"
run: echo "::set-output name=defined::true"
env:
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
run: |
echo "Enable publish: ${{ env.SIGNING_KEY != '' }}"
echo "::set-output name=publish::${{ env.SIGNING_KEY != '' }}"
publish:
runs-on: ubuntu-latest
needs: [check-secret]
if: needs.check-secret.outputs.publish-enabled == 'true'
if: ${{ needs.publish-enabled.outputs.publish == 'true' }}
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -61,8 +57,8 @@ jobs:
run: |
echo signingKey=$SIGNING_KEY >> gradle.properties
./gradlew :metadata-integration:java:datahub-client:printVersion
./gradlew :metadata-integration:java:datahub-client:publishToMavenLocal
#./gradlew :metadata-integration:java:datahub-client:closeAndReleaseRepository --info
./gradlew :metadata-integration:java:datahub-client:publish
./gradlew :metadata-integration:java:datahub-client:closeAndReleaseRepository --info
- name: publish datahub-spark jar
env:
RELEASE_USERNAME: ${{ secrets.RELEASE_USERNAME }}
Expand Down

0 comments on commit 0bed5ac

Please sign in to comment.