From f0768511e0257c870424b4a2305061dfde5f9d04 Mon Sep 17 00:00:00 2001 From: Tochukwu Date: Sat, 6 Jan 2024 11:39:58 +0100 Subject: [PATCH] Update publish.yml --- .github/workflows/publish.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fbdb4205..38a7ad7e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,10 +18,11 @@ jobs: run: pip install flit - name: Install Dependencies run: flit install --symlink + - name: Install build dependencies + run: pip install build + - name: Build distribution + run: python -m build - name: Publish - env: - FLIT_USERNAME: ${{ secrets.FLIT_USERNAME }} - FLIT_PASSWORD: ${{ secrets.FLIT_PASSWORD }} - run: flit publish - - name: Deploy Documentation - run: make doc-deploy + uses: pypa/gh-action-pypi-publish@v1.8.10 + with: + password: ${{ secrets.PYPI_API_TOKEN }}