~linuxgoose/linguistics-robin

6ef2ba53b21023468f411c42702c064ed88a9e06 — Jordan Robinson a month ago a6c4249 main
Refactor GitHub Actions workflow for publishing
1 files changed, 5 insertions(+), 10 deletions(-)

M .github/workflows/publish.yml
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