Skip to content

Merge pull request #58 from eyra/release/4 #61

Merge pull request #58 from eyra/release/4

Merge pull request #58 from eyra/release/4 #61

Workflow file for this run

name: Build and Deploy to GitHub Pages
on:
push:
branches:
- master
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
- name: Install Poetry
run: |
python -m pip install --upgrade pip
pip install poetry
- name: Build Python Package
working-directory: packages/python
run: |
poetry lock
poetry install
poetry build --format wheel
- name: Install Node Dependencies
run: npm ci
- name: Copy Python Wheel
run: |
mkdir -p packages/data-collector/public
cp packages/python/dist/*.whl packages/data-collector/public/
- name: Build App
run: npm run build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./packages/data-collector/build