mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-06-13 10:03:14 +03:00
Migrate to OIDC publishing
This commit is contained in:
parent
a61749c68d
commit
dfee54932b
30
.github/workflows/publishing.yml
vendored
30
.github/workflows/publishing.yml
vendored
|
@ -75,10 +75,13 @@ jobs:
|
||||||
name: cibw-wheels-x86-${{ matrix.os }}-${{ strategy.job-index }}
|
name: cibw-wheels-x86-${{ matrix.os }}-${{ strategy.job-index }}
|
||||||
path: ./wheelhouse/*.whl
|
path: ./wheelhouse/*.whl
|
||||||
|
|
||||||
publish:
|
test-publish:
|
||||||
name: Publish on PyPI
|
name: Upload release to TestPyPI
|
||||||
needs: [build-sdist, build-wheels]
|
needs: [build-sdist, build-wheels]
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-latest
|
||||||
|
environment: test-pypi
|
||||||
|
permissions:
|
||||||
|
id-token: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
@ -87,11 +90,22 @@ jobs:
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
- uses: pypa/gh-action-pypi-publish@release/v1
|
- uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
with:
|
with:
|
||||||
user: __token__
|
repository-url: https://test.pypi.org/legacy/
|
||||||
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
||||||
# For publishing to Test PyPI, uncomment next two lines:
|
publish:
|
||||||
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
|
name: Upload release to PyPI
|
||||||
# repository_url: https://test.pypi.org/legacy/
|
needs: [build-sdist, build-wheels, test-publish]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
environment: pypi
|
||||||
|
permissions:
|
||||||
|
id-token: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
pattern: cibw-*
|
||||||
|
path: dist
|
||||||
|
merge-multiple: true
|
||||||
|
- uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
|
|
||||||
publish-docs:
|
publish-docs:
|
||||||
name: Publish docs
|
name: Publish docs
|
||||||
|
|
Loading…
Reference in New Issue
Block a user