Skip to content

Commit

Permalink
build: Update CI-CD.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrod authored Sep 10, 2024
1 parent 5cd9385 commit dca15d8
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/CI-CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,17 @@ jobs:
repository-url: https://test.pypi.org/simple/karney
- name: Test install from TestPyPI
uses: actions/upload-artifact@v4
with:
name: release-dists
path: dist/
with:
name: release-dists
path: dist/

testpypi-publish:
runs-on: ubuntu-latest

needs:
- release-build

permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write

# Dedicated environments with protections for publishing are strongly recommended.
environment:
name: pypi
Expand All @@ -106,8 +103,8 @@ jobs:

- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

run: |
- name: Test install from TestPyPI
run: |
pip install \
--index-url https://test.pypi.org/simple/ \
--extra-index-url https://pypi.org/simple/ \
Expand Down

0 comments on commit dca15d8

Please sign in to comment.