Skip to content

Commit

Permalink
Build Kedro-Viz, and publish files to GitHub Pages (#1)
Browse files Browse the repository at this point in the history
Co-authored-by: Deepyaman Datta <[email protected]>
  • Loading branch information
noklam and deepyaman authored Jan 31, 2024
1 parent c5aa76b commit 48d47db
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/kedro-viz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Kedro-Viz

on:
pull_request:
push:
branches:
- main
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Fetch the repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
- name: Install dependencies
run: pip install -r requirements.txt
- name: Consent to the use of Kedro-Telemetry
run: "echo 'consent: true' > .telemetry"
- name: Create build directory
run: kedro viz build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
force_orphan: true

0 comments on commit 48d47db

Please sign in to comment.