mirror of
https://github.com/curly60e/pyblock.git
synced 2026-08-16 13:00:52 +02:00
Replace poetry push with the officla pypa github action to publish the pkg
This commit is contained in:
parent
a965aad062
commit
4846bc6a82
2 changed files with 8 additions and 3 deletions
6
.github/workflows/release.yaml
vendored
6
.github/workflows/release.yaml
vendored
|
|
@ -13,4 +13,8 @@ jobs:
|
|||
architecture: 'x64'
|
||||
- run: pip install poetry==1.1.12
|
||||
- run: poetry build
|
||||
- run: poetry publish --username=__token__ --password=pypi-AgEIcHlwaS5vcmcCJDQwMzMxMjdmLTBmMTctNDBlYS1iOWFmLWIwM2Y2NzQ2ZGI0NwACO3sicGVybWlzc2lvbnMiOiB7InByb2plY3RzIjogWyJweWJpdGJsb2NrIl19LCAidmVyc2lvbiI6IDF9AAAGIKCZjHVuDJBvYqr1bFeyzeVd4BCxXpasFbcuCAf8qd8T
|
||||
- name: Publish a Python distribution to PyPI
|
||||
uses: pypa/gh-action-pypi-publish@release/v1
|
||||
with:
|
||||
user: __token__
|
||||
password: ${{ secrets.PYPI_TOKEN }}
|
||||
|
|
|
|||
5
.github/workflows/test-pypi.yml
vendored
5
.github/workflows/test-pypi.yml
vendored
|
|
@ -18,8 +18,9 @@ jobs:
|
|||
version=$(poetry version | awk '{print $2}') &&
|
||||
poetry version $version.dev.$(date +%s)
|
||||
- run: poetry build
|
||||
- uses: pypa/gh-action-pypi-publish@release/v1
|
||||
- name: Publish package to TestPyPI
|
||||
uses: pypa/gh-action-pypi-publish@release/v1
|
||||
with:
|
||||
user: __token__
|
||||
password: pypi-AgENdGVzdC5weXBpLm9yZwIkYTU3ODBjMDQtODUwZS00NjVmLTljMWItMWE3NjAzMjViNjlkAAI7eyJwZXJtaXNzaW9ucyI6IHsicHJvamVjdHMiOiBbInB5Yml0YmxvY2siXX0sICJ2ZXJzaW9uIjogMX0AAAYgxFCew1vGx9Oto1quivWFZde7sLNJr5-cnkcg8QDODjk
|
||||
password: ${{ secrets.TEST_PYPI_TOKEN }}
|
||||
repository_url: https://test.pypi.org/legacy/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue