Skip to content

Commit

Permalink
github: don't publish to test pypi twice
Browse files Browse the repository at this point in the history
  • Loading branch information
aconchillo committed May 20, 2024
1 parent dbba453 commit 728fe0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 27 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,25 +60,3 @@ jobs:
with:
verbose: true
print-hash: true

publish-to-test-pypi:
name: "Publish to Test PyPI"
runs-on: ubuntu-latest
needs: [ build ]
environment:
name: testpypi
url: https://pypi.org/p/pipecat-ai
permissions:
id-token: write
steps:
- name: Download wheels
uses: actions/download-artifact@v4
with:
name: wheels
path: ./dist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true
print-hash: true
repository-url: https://test.pypi.org/legacy/
8 changes: 3 additions & 5 deletions .github/workflows/publish_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ name: publish-test

on:
workflow_dispatch:
pull_request:
push:
branches:
- "**"
paths-ignore:
- "docs/**"
- main

jobs:
build:
Expand Down Expand Up @@ -42,7 +40,7 @@ jobs:
name: wheels
path: ./dist

publish-to-pypi:
publish-to-test-pypi:
name: "Publish to Test PyPI"
runs-on: ubuntu-latest
needs: [ build ]
Expand Down

0 comments on commit 728fe0a

Please sign in to comment.