Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

publish datahub-client as part of staged deploy workflow #536

Merged
merged 1 commit into from
Jul 15, 2024
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
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
Loading