Skip to content

Merge pull request #11 from PixelCode01/feature/contribution-experience #3

Merge pull request #11 from PixelCode01/feature/contribution-experience

Merge pull request #11 from PixelCode01/feature/contribution-experience #3

Workflow file for this run

name: Deploy Explorer
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Generate dataset
run: python scripts/generate_data_bundle.py --out build/data.json --public web/public/data.json
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
cache-dependency-path: web/package-lock.json
- name: Install dependencies
working-directory: web
run: npm install
- name: Build site
working-directory: web
run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: web/dist
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Configure Pages
id: config
uses: actions/configure-pages@v5
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4