Skip to content

Commit

Permalink
Update generate website workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JCZuurmond committed Aug 2, 2023
1 parent db66e21 commit 8bd6ab9
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/deploy_to_github_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
branches:
- main
workflow_dispatch:
workflow_run:
workflows:
- Run dbt
types:
- completed

permissions:
contents: read
Expand All @@ -27,21 +32,27 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Download duckdb
uses: actions/download-artifact@v3
uses: dawidd6/action-download-artifact@v2
with:
name: ${{ env.DUCKDB_PATH }}
workflow: dbt.yml
workflow_conclusion: success

- name: Install requirements
run: |
python -m pip install --upgrade pip
python -m pip install duckdb
python -m pip install duckdb Jinja2
- name: Generate site
run: _site/generate_html.py ${{ env.DUCKDB_PATH }} _site/index.html
run: python _site/generate_html.py ${{ env.DUCKDB_PATH }} _site/index.html

- name: Setup Pages
uses: actions/configure-pages@v3
Expand Down

0 comments on commit 8bd6ab9

Please sign in to comment.