M .github/workflows/publish.yml => .github/workflows/publish.yml +5 -10
@@ 8,26 8,21 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
- container:
- image: cimg/python:3.12-node
steps:
- # Checkout the repository
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: 'main'
-
- # Install Flit
+ - name: Set up Python
+ uses: actions/setup-python@v5
- name: Install Flit
- run: pip install --upgrade pip flit
-
- # Install project dependencies
+ run: pip install flit
- 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