Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
Friskes committed Apr 28, 2024
1 parent daa7182 commit cf82ca5
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,30 +115,30 @@ jobs:
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

publish-to-testpypi:
name: Publish Python 🐍 distribution 📦 to TestPyPI
# publish-to-testpypi:
# name: Publish Python 🐍 distribution 📦 to TestPyPI

if: github.repository_owner == 'Friskes' && github.event_name == 'push'
# if: github.repository_owner == 'Friskes' && github.event_name == 'push'

needs:
- build
runs-on: ubuntu-latest
# needs:
# - build
# runs-on: ubuntu-latest

environment:
name: testpypi
url: https://test.pypi.org/p/drf-spectacular-websocket
# environment:
# name: testpypi
# url: https://test.pypi.org/p/drf-spectacular-websocket

permissions:
id-token: write
# permissions:
# id-token: write

steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
# steps:
# - name: Download all the dists
# uses: actions/download-artifact@v4
# with:
# name: python-package-distributions
# path: dist/

- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
# - name: Publish distribution 📦 to TestPyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# repository-url: https://test.pypi.org/legacy/

0 comments on commit cf82ca5

Please sign in to comment.