added realese to pypi
This commit is contained in:
+16
-22
@@ -3,7 +3,7 @@ name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- pyproject.toml # test branch for testing the workflow
|
- develop branch to create pre-release
|
||||||
tags:
|
tags:
|
||||||
- v* # Push tags to trigger the workflow
|
- v* # Push tags to trigger the workflow
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -46,25 +46,19 @@ jobs:
|
|||||||
pip install -U setuptools
|
pip install -U setuptools
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
python3 -m pip install --no-deps --pre --index-url https://test.pypi.org/simple/ scraibe>=0.1.3
|
python3 -m pip install --no-deps --pre --index-url https://test.pypi.org/simple/ scraibe>=0.1.3
|
||||||
python3 -m -c "import scraibe; print(scraibe.__version__)"
|
python3 -c "import scraibe; print(scraibe.__version__)"
|
||||||
|
|
||||||
# publish-to-pypi:
|
publish-to-pypi:
|
||||||
# name: Conditional Publish to PyPI or Dev Repository
|
name: Publish to PyPI
|
||||||
# needs: [build, test-install]
|
needs: test-install
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# environment:
|
steps:
|
||||||
# name: pypi
|
- uses: actions/checkout@v4
|
||||||
# url: env.PyPI_URL
|
with:
|
||||||
# permissions:
|
fetch-depth: '0'
|
||||||
# id-token: write
|
- name: Set up Poetry 📦
|
||||||
# steps:
|
uses: JRubics/poetry-publish@v1.16
|
||||||
# - name: Download all the dists
|
with:
|
||||||
# uses: actions/download-artifact@v3
|
pypi_token: ${{ secrets.PYPI_API_TOKEN }}
|
||||||
# with:
|
plugins: "poetry-dynamic-versioning"
|
||||||
# name: python-package-distributions
|
repository_name: "scraibe"
|
||||||
# path: dist/
|
|
||||||
# - name: Publish distribution 📦 to PyPI or Dev Repository
|
|
||||||
# uses: pypa/gh-action-pypi-publish@release/v1
|
|
||||||
# with:
|
|
||||||
# repository-url: ${{ github.ref == 'refs/heads/main' && 'env.PyPI_URL' || ' env.PyPI_DEV_URL' }}
|
|
||||||
# password: ${{ secrets.PYPI_API_TOKEN}}
|
|
||||||
Reference in New Issue
Block a user