瀏覽代碼

Simplify publish.

Jelmer Vernooij 4 年之前
父節點
當前提交
744eb8fd71
共有 1 個文件被更改,包括 2 次插入9 次删除
  1. 2 9
      .github/workflows/pythonpublish.yml

+ 2 - 9
.github/workflows/pythonpublish.yml

@@ -48,17 +48,10 @@ jobs:
         # https://github.com/RalfG/python-wheels-manylinux-build/issues/26
         LD_LIBRARY_PATH: /usr/local/lib:${{ env.LD_LIBRARY_PATH }}
       if: "matrix.os == 'ubuntu-latest'"
-    - name: Publish (Linux)
-      env:
-        TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
-        TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
-      run: |
-        twine upload dist/*manylinux*
-      if: "matrix.os == 'ubuntu-latest'"
     - name: Publish
       env:
         TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
         TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
       run: |
-        twine upload wheelhouse/*
-      if: "matrix.os != 'ubuntu-latest'"
+        twine upload dist/*.whl
+      if: "matrix.os == 'ubuntu-latest'"