Skip to content

Build Kedro-Viz, and publish files to GitHub Pages (#1) #1

Build Kedro-Viz, and publish files to GitHub Pages (#1)

Build Kedro-Viz, and publish files to GitHub Pages (#1) #1

Workflow file for this run

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