Skip to content

Commit

Permalink
removes test trigger and logic
Browse files Browse the repository at this point in the history
  • Loading branch information
chaduhduh committed Oct 4, 2024
1 parent e2ef6f5 commit 54f7c50
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/release_pip.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
name: Release

# on:
# release:
# types: [released]
on:
push:
branches:
- workflow-updates
release:
types: [released]

jobs:
build:
release-pip:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -32,11 +28,10 @@ jobs:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
# for testing purposes set the PYPI_REPO_URL to https://test.pypi.org/legacy/
#TODO: remove this test setting before merge
PYPI_REPO_URL: 'https://test.pypi.org/legacy/'
PYPI_REPO_URL: ''
run: |
if [ -z "${{ env.PYPI_REPO_URL }}" ]; then
twine upload --verbose dist/*
else
echo "skipped for test"
twine upload --verbose --repository-url "${{ env.PYPI_REPO_URL }}" dist/*
fi

0 comments on commit 54f7c50

Please sign in to comment.