From c018e993835e5faaca266c87f6166221a55a63d0 Mon Sep 17 00:00:00 2001 From: Daniele Guido Date: Wed, 21 Feb 2024 10:06:34 +0100 Subject: [PATCH] add environment to python-publish.yml --- .github/workflows/python-publish.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index e187c32..b2203d6 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -13,7 +13,14 @@ permissions: jobs: deploy: runs-on: ubuntu-latest - + + environment: + name: testpypi + url: https://test.pypi.org/p/impresso + + # permissions: + # id-token: write + steps: - uses: actions/checkout@v3 - name: Set up Python @@ -26,8 +33,10 @@ jobs: pip install build - name: Build package run: python -m build - - name: Publish package - uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 + - name: Publish test package + uses: pypa/gh-action-pypi-publish@release/v1 + # pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 + with: repository-url: https://test.pypi.org/legacy/ user: __token__