Skip to content

Commit

Permalink
register workflow with gha
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Nov 22, 2024
1 parent ea68191 commit e424dfc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "Publish"

on:
pull_request:
workflow_dispatch:
inputs:
package:
Expand All @@ -12,19 +13,19 @@ on:
deploy-to:
description: "Choose whether to publish to test or prod"
type: environment
default: "prod"
default: "test"
branch:
description: "Choose the branch to publish from"
type: string
default: "main"
default: "monorepo/shared-workflows"
pypi-internal:
description: "Publish Internally"
type: boolean
default: true
default: false
pypi-public:
description: "Publish to PyPI"
type: boolean
default: false
default: true

# don't attempt to release the same target in parallel
concurrency:
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ dependencies = [
setup = "pre-commit install"
code-quality = "pre-commit run --all-files"
unit-tests = "python -m pytest {args:tests/unit}"
test-publish = "gh workflow run publish.yml --ref $(git rev-parse --abbrev-ref HEAD) -f package=dbt-adapters -f branch=$(git rev-parse --abbrev-ref HEAD) -f deploy-to=test -f pypi-internal=false -f pypi-public=true"

[tool.hatch.envs.build]
detached = true
Expand Down

0 comments on commit e424dfc

Please sign in to comment.