Small fix #4
This file contains 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
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 |