Skip to content

Commit

Permalink
Merge pull request #48 from Haidra-Org/push-on-release
Browse files Browse the repository at this point in the history
ci: temp: don't actually push to pypi while we're testing
  • Loading branch information
tazlin authored Oct 23, 2023
2 parents bb2ee74 + 3938263 commit f882fa9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- releases


permissions:
contents: write
pull-requests: read
Expand All @@ -17,11 +18,12 @@ jobs:
environment: # see https://github.com/pypa/gh-action-pypi-publish/tree/release/v1/
name: pypi
url: https://pypi.org/p/horde-sdk/

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

steps:

steps:
- name: "📣 Release on push"
id: release
uses: rymndhng/[email protected]
Expand Down Expand Up @@ -78,10 +80,10 @@ jobs:
run: >-
python -m build --sdist --wheel --outdir dist/ .
# Publish the package
- name: "📦 Publish distribution to PyPI"
if: ${{ steps.release.outputs.version != '' }}
uses: pypa/gh-action-pypi-publish@release/v1
# # Publish the package
# - name: "📦 Publish distribution to PyPI"
# if: ${{ steps.release.outputs.version != '' }}
# uses: pypa/gh-action-pypi-publish@release/v1

# # Update the badges (maybe, if we're lucky)
# - name: "📦 Refresh pypi badge cache"
Expand Down

0 comments on commit f882fa9

Please sign in to comment.