Skip to content

Small fix

Small fix #4

Workflow file for this run

name: Publish to PyPI
on:
push:
paths:
- pyproject.toml # Trigger when pyproject.toml changes
jobs:
publish:
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout code
uses: actions/checkout@v3
# Set up Docker and build the image
- name: Build Docker image
run: docker build -t effectual .
# Create and start the container
- name: Create and start Docker container
run: |
docker create --name effectual effectual
docker start effectual
# Publish to PyPI using the container
- name: Publish to PyPI
env:
UV_INDEX_AUTH: ${{ secrets.PYPI_TOKEN }}
run: |
docker exec effectual uv publish --token=${{ secrets.PYPI_TOKEN }} dist/*
# Stop and remove the container
- name: Stop and remove Docker container
run: |
docker stop effectual
docker rm effectual