Skip to content

Commit

Permalink
update workflows to use poetry command, install mike, and remove whit…
Browse files Browse the repository at this point in the history
…espace
  • Loading branch information
graciegoheen committed Jun 6, 2023
1 parent 3cdb512 commit ca1df63
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 21 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/publish-docs-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@ jobs:

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mkdocs-material mike mkdocs-click
poetry install
- name: Deploy to GitHub Pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name "GitHub Actions Bot"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
mike deploy --push --message "Deployed by GitHub Actions" main
poetry run mike deploy --push --message "Deployed by GitHub Actions" main
7 changes: 3 additions & 4 deletions .github/workflows/publish-docs-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ jobs:

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mkdocs-material mike mkdocs-click
poetry install
- name: Extract Major and Minor Version
run: |
Expand All @@ -40,5 +39,5 @@ jobs:
run: |
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
mike deploy --push --message "Deploy docs for release ${{ github.event.release.tag_name }}" --update-alias $MAJOR_MINOR_VERSION latest
mike set-default --push latest
poetry run mike deploy --push --message "Deploy docs for release ${{ github.event.release.tag_name }}" --update-alias $MAJOR_MINOR_VERSION latest
poetry run mike set-default --push latest
1 change: 1 addition & 0 deletions docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
:module: dbt_meshify.main
:command: cli
:prog_name: dbt-meshify
:list_subcommands: true
2 changes: 0 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ The process of splitting a dbt monolith apart roughly requires you to:

Here's how that might look for the process of creating a separate `finance` subproject in your dbt monolith.

## Basic Usage

```bash
# create a group of all models tagged with "finance"
# leaf nodes and nodes with cross-group dependencies will be `public`
Expand Down
2 changes: 0 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
site_name: dbt_meshify



theme:

palette:
Expand Down
57 changes: 47 additions & 10 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ mypy = "^1.3.0"
isort = "^5.12.0"
pre-commit = "^3.3.1"
ruamel-yaml = "^0.17.31"
mike = "^1.1.2"

[tool.poetry.extras]
postgres = ['dbt-postgres']
Expand Down

0 comments on commit ca1df63

Please sign in to comment.