Skip to content

Commit

Permalink
publish datahub-client as part of staged deploy workflow (#536)
Browse files Browse the repository at this point in the history
add datahub-client release as part of staged deploy
  • Loading branch information
tom-webber authored Jul 15, 2024
1 parent 3682cf9 commit f144de2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/deploy-staged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ jobs:
code-tests:
uses: "./.github/workflows/reusable-tests.yml"

release-datahub-client:
needs: code-tests
if: ${{ needs.code-tests.outputs.datahub-client-path == 'true' }}
uses: "./.github/workflows/reusable-release-datahub-client.yml"

deploy-test:
uses: "./.github/workflows/reusable-build-and-deploy.yml"
needs: code-tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
name: Release Datahub Client library

on:
push:
tags:
- "datahub-client-v*.*.*"
workflow_call:

permissions: read-all

Expand All @@ -30,14 +28,11 @@ jobs:
with:
python-version: "3.10"

- name: Install Poetry
id: install_poetry
run: |
curl -sSL "https://install.python-poetry.org" | python3 -
echo "${HOME}/.poetry/bin" >>"${GITHUB_PATH}"
- name: Install poetry
run: pipx install poetry

- name: Build a distribution
id: build_distribution
id: build-distribution
run: |
poetry build
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/reusable-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Deploy

on:
workflow_call:
outputs:
datahub-client-path:
description: "Boolean string indicating if files in the the datahub-client were changed"
value: ${{ jobs.datahub-client-path-filter.steps.changes.outputs.datahub-client }}

jobs:
datahub-client-path-filter:
Expand Down

0 comments on commit f144de2

Please sign in to comment.