Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
MiXaiLL76 committed Sep 13, 2024
1 parent 61b086e commit af55180
Showing 2 changed files with 57 additions and 56 deletions.
112 changes: 56 additions & 56 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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 }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -11,3 +11,4 @@ tests/synth_test_dataset
examples/ultralytics
examples/comparison/ultralytics/runs/*
examples/comparison/ultralytics/*.pt
*.whl

0 comments on commit af55180

Please sign in to comment.