From 27bc2fc117028fbae1b886cde478a7a74734c457 Mon Sep 17 00:00:00 2001 From: linuxgoose Date: Tue, 14 Oct 2025 20:36:13 +0000 Subject: [PATCH] Update .github/workflows/publish.yml --- .github/workflows/publish.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 14c080d5af858e3a602e766cc6cb142358dbd623..0c5f1c59680a24cb840db113376c62858a130245 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,21 +8,32 @@ on: jobs: publish: runs-on: ubuntu-latest + container: + image: python:3.12-slim # <-- ensures Python and pip are available steps: + # Checkout the repository - uses: actions/checkout@v4 with: fetch-depth: 0 ref: 'main' + + # Set up Python (optional in python image, but keeps setup-python steps compatible) - name: Set up Python uses: actions/setup-python@v5 + with: + python-version: '3.12' + + # Install Flit - name: Install Flit - run: pip install flit + run: pip install --upgrade pip flit + + # Install project dependencies - name: Install Dependencies run: flit install --symlink + + # Publish to PyPI - name: Publish env: - # FLIT_USERNAME: ${{ secrets.FLIT_USERNAME }} - # FLIT_PASSWORD: ${{ secrets.FLIT_PASSWORD }} FLIT_USERNAME: __token__ FLIT_PASSWORD: ${{ secrets.PYPI_TOKEN }} run: flit publish