Skip to content

Commit

Permalink
add environment to python-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleguido authored Feb 21, 2024
1 parent d93d6a2 commit c018e99
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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__
Expand Down

0 comments on commit c018e99

Please sign in to comment.