From af551802a6be179ba128c3b92d85da67a36d2e83 Mon Sep 17 00:00:00 2001 From: MiXaiLL76 Date: Fri, 13 Sep 2024 18:48:49 +0300 Subject: [PATCH] fix --- .github/workflows/build.yml | 112 ++++++++++++++++++------------------ .gitignore | 1 + 2 files changed, 57 insertions(+), 56 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1e54df7..bddbac6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,59 +48,59 @@ jobs: name: sdist path: ./dist/*.tar.gz - # publish_test: - # needs: [build_wheels, build_sdist] - # name: Publish package to TestPyPI - # runs-on: ubuntu-latest - # # https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#using-an-environment - # environment: release - # # https://github.com/pypa/gh-action-pypi-publish#trusted-publishing - # permissions: - # id-token: write - - # steps: - # - uses: actions/download-artifact@v4 - # with: - # name: sdist - # path: dist - - # - uses: actions/download-artifact@v4 - # with: - # name: wheels - # path: dist - - # - name: Display structure of downloaded files - # run: ls -R dist - - # - name: Publish package distributions to TestPyPI - # uses: pypa/gh-action-pypi-publish@release/v1 - # with: - # password: ${{ secrets.TEST_PYPI_API_TOKEN }} - # repository-url: https://test.pypi.org/legacy/ - - # publish_prod: - # needs: [publish_test] - # name: Publish package to PyPI - # runs-on: ubuntu-latest - # environment: release - # permissions: - # id-token: write - - # steps: - # - uses: actions/download-artifact@v4 - # with: - # name: sdist - # path: dist - - # - uses: actions/download-artifact@v4 - # with: - # name: wheels - # path: dist - - # - name: Display structure of downloaded files - # run: ls -R dist - - # - name: Publish package distributions to TestPyPI - # uses: pypa/gh-action-pypi-publish@release/v1 - # with: - # password: ${{ secrets.PYPI_API_TOKEN }} + publish_test: + needs: [build_wheels, build_sdist] + name: Publish package to TestPyPI + runs-on: ubuntu-latest + # https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#using-an-environment + environment: release + # https://github.com/pypa/gh-action-pypi-publish#trusted-publishing + permissions: + id-token: write + + steps: + - uses: actions/download-artifact@v4 + with: + name: sdist + path: dist + + - uses: actions/download-artifact@v4 + with: + name: wheels + path: dist + + - name: Display structure of downloaded files + run: ls -R dist + + - name: Publish package distributions to TestPyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.TEST_PYPI_API_TOKEN }} + repository-url: https://test.pypi.org/legacy/ + + publish_prod: + needs: [publish_test] + name: Publish package to PyPI + runs-on: ubuntu-latest + environment: release + permissions: + id-token: write + + steps: + - uses: actions/download-artifact@v4 + with: + name: sdist + path: dist + + - uses: actions/download-artifact@v4 + with: + name: wheels + path: dist + + - name: Display structure of downloaded files + run: ls -R dist + + - name: Publish package distributions to TestPyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/.gitignore b/.gitignore index fea196d..ed81ef1 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ tests/synth_test_dataset examples/ultralytics examples/comparison/ultralytics/runs/* examples/comparison/ultralytics/*.pt +*.whl