less is more
This commit is contained in:
+20
-20
@@ -42,23 +42,23 @@ jobs:
|
|||||||
python3 -m pip install setuptools
|
python3 -m pip install setuptools
|
||||||
python3 -m pip install --index-url https://test.pypi.org/simple/ scraibe
|
python3 -m pip install --index-url https://test.pypi.org/simple/ scraibe
|
||||||
|
|
||||||
publish-to-pypi:
|
# publish-to-pypi:
|
||||||
name: Conditional Publish to PyPI or Dev Repository
|
# name: Conditional Publish to PyPI or Dev Repository
|
||||||
needs: [build, test-install]
|
# needs: [build, test-install]
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
environment:
|
# environment:
|
||||||
name: pypi
|
# name: pypi
|
||||||
url: env.PyPI_URL
|
# url: env.PyPI_URL
|
||||||
permissions:
|
# permissions:
|
||||||
id-token: write
|
# id-token: write
|
||||||
steps:
|
# steps:
|
||||||
- name: Download all the dists
|
# - name: Download all the dists
|
||||||
uses: actions/download-artifact@v3
|
# uses: actions/download-artifact@v3
|
||||||
with:
|
# with:
|
||||||
name: python-package-distributions
|
# name: python-package-distributions
|
||||||
path: dist/
|
# path: dist/
|
||||||
- name: Publish distribution 📦 to PyPI or Dev Repository
|
# - name: Publish distribution 📦 to PyPI or Dev Repository
|
||||||
uses: pypa/gh-action-pypi-publish@release/v1
|
# uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
with:
|
# with:
|
||||||
repository-url: ${{ github.ref == 'refs/heads/main' && 'env.PyPI_URL' || ' env.PyPI_DEV_URL' }}
|
# repository-url: ${{ github.ref == 'refs/heads/main' && 'env.PyPI_URL' || ' env.PyPI_DEV_URL' }}
|
||||||
password: ${{ secrets.PYPI_API_TOKEN}}
|
# password: ${{ secrets.PYPI_API_TOKEN}}
|
||||||
Reference in New Issue
Block a user