Initial commit #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # An example workflow configuration assuming your kedro project is | |
| # at the root directory | |
| # The name of your workflow | |
| name: Publish and share Kedro Viz | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| # The action is currently tested on ubuntu-latest (Recommended) | |
| runs-on: ubuntu-latest | |
| env: | |
| DO_NOT_TRACK: true | |
| KEDRO_POLIS_URL: https://pol.is/report/r29kkytnipymd3exbynkd | |
| steps: | |
| - name: Fetch the repository | |
| uses: actions/checkout@v4 | |
| - name: Install lxml build dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libxml2-dev libxslt-dev | |
| - name: "Set up Python" | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| - name: Run all pipelines | |
| # Run pipelines for: #ChileDespertó polis conversation (Chilean protest) | |
| # Polis report: https://pol.is/report/r29kkytnipymd3exbynkd | |
| run: uv run make run-pipelines PARAMS="polis_url=$KEDRO_POLIS_URL" | |
| - name: Build static site | |
| run: | | |
| uv run make build | |
| env: | |
| POLIS_URL: ${{ env.KEDRO_POLIS_URL }} | |
| - name: Upload static files as artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: build/ | |
| deploy: | |
| needs: build | |
| permissions: | |
| # The pages and id-token write permissions are required to use | |
| # the action if your GitHub publishing source is a custom | |
| # GitHub Actions workflow | |
| pages: write | |
| id-token: write | |
| # Deploy to the github-pages environment | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| env: | |
| DO_NOT_TRACK: true | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |