Skip to content

Commit

Permalink
Update publish-to-test-pypi.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun authored Dec 6, 2023
1 parent c631977 commit a03427f
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,17 @@ jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to TestPyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://test.pypi.org/p/djangocms-snippet
permissions:
id-token: write
steps:
- uses: actions/checkout@master
- name: Set up Python 3.11
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: 3.11
python-version: '3.11'

- name: Install pypa/build
run: >-
Expand All @@ -32,9 +37,7 @@ jobs:
.
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
repository-url: https://test.pypi.org/legacy/
skip_existing: true

0 comments on commit a03427f

Please sign in to comment.