Skip to content

ci: add semantic-release to publish to PyPI #1

ci: add semantic-release to publish to PyPI

ci: add semantic-release to publish to PyPI #1

Workflow file for this run

name: Release
on: [push]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- uses: actions/setup-node@v4
with:
node-version: "20.x"
- name: Install Python requirements
run: pip install -r requirements_dev.txt
- name: Install dependencies
run: npm ci
- name: Build CSS
run: npm run build
- name: Release
run: npx semantic-release --dry-run --branches publish-pypi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}