Skip to content

Commit 6b9d960

Browse files
committed
Activated the testpypi release workflow.
1 parent 9cacd9a commit 6b9d960

File tree

2 files changed

+30
-22
lines changed

2 files changed

+30
-22
lines changed

Diff for: .github/workflows/release.yml

+22-22
Original file line numberDiff line numberDiff line change
@@ -94,28 +94,28 @@ jobs:
9494
'${{ github.ref_name }}' dist/**
9595
--repo '${{ github.repository }}'
9696
97-
# publish-to-testpypi:
98-
# name: Publish Python 🐍 distribution 📦 to TestPyPI
99-
# if: startsWith(github.ref, 'refs/tags/') # only publish to TestPyPI on tag pushes
100-
# needs:
101-
# - build
102-
# runs-on: ubuntu-latest
97+
publish-to-testpypi:
98+
name: Publish Python 🐍 distribution 📦 to TestPyPI
99+
if: startsWith(github.ref, 'refs/tags/') # only publish to TestPyPI on tag pushes
100+
needs:
101+
- build
102+
runs-on: ubuntu-latest
103103

104-
# environment:
105-
# name: testpypi
106-
# url: ${{ env.PYPI_TEST_URL }}
104+
environment:
105+
name: testpypi
106+
url: ${{ env.PYPI_TEST_URL }}
107107

108-
# permissions:
109-
# id-token: write # IMPORTANT: mandatory for trusted publishing
108+
permissions:
109+
id-token: write # IMPORTANT: mandatory for trusted publishing
110110

111-
# steps:
112-
# - name: Download all the dists
113-
# uses: actions/download-artifact@v4
114-
# with:
115-
# name: python-package-distributions
116-
# path: dist/
117-
# - name: Publish distribution 📦 to TestPyPI
118-
# uses: pypa/gh-action-pypi-publish@release/v1.10
119-
# with:
120-
# repository-url: https://test.pypi.org/legacy/
121-
# skip-existing: true
111+
steps:
112+
- name: Download all the dists
113+
uses: actions/download-artifact@v4
114+
with:
115+
name: python-package-distributions
116+
path: dist/
117+
- name: Publish distribution 📦 to TestPyPI
118+
uses: pypa/gh-action-pypi-publish@release/v1.10
119+
with:
120+
repository-url: https://test.pypi.org/legacy/
121+
skip-existing: true

Diff for: CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 2.20.2
4+
5+
- Added testpypi release workflow.
6+
7+
## 2.20.1
8+
9+
- Fixed a critical issue of 2.20.0.
10+
311
## 2.20.0
412

513
- Removed django-appconf again.

0 commit comments

Comments
 (0)