Skip to content

Commit

Permalink
chore: fixing cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanker committed Nov 23, 2023
1 parent da6eaa6 commit 074739f
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,27 @@ jobs:
repository-url: https://test.pypi.org/legacy/
uses: pypa/gh-action-pypi-publish@release/v1

# # Upload to real PyPI on GitHub Releases.
# release-pypi:
# name: Publish released package to pypi.org
# runs-on: ubuntu-latest
# needs: [semantic-release, build-package]
# environment:
# name: pypi
# url: https://pypi.org/p/invert4geom
# permissions:
# id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
# if: github.ref == 'refs/heads/main'
# uses: pypa/gh-action-pypi-publish@release/v1
# Upload to real PyPI on GitHub Releases.
release-pypi:
name: Publish released package to pypi.org
runs-on: ubuntu-latest
needs: [semantic-release, build-package]
environment:
name: pypi
url: https://pypi.org/p/invert4geom
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
if: github.ref == 'refs/heads/main'
steps:
# Download the build package files
- name: Download packages built by build-and-inspect-python-package
with:
name: Packages
path: dist
uses: actions/download-artifact@v3

- name: Upload package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

# # Upload to GitHub Releases.
# release-github:
Expand Down

0 comments on commit 074739f

Please sign in to comment.