Skip to content

Commit 9e23334

Browse files
committed
Change from TestPyPI to PyPI
1 parent 6f2d6e1 commit 9e23334

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

Diff for: .github/workflows/release.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ jobs:
6060

6161
- name: Publish package
6262
run: |
63-
python -m twine upload --repository testpypi dist/*
63+
python -m twine upload --repository pypi dist/*
6464
env:
6565
TWINE_USERNAME: __token__
66-
TWINE_PASSWORD: ${{ secrets.TESTPYPI_API_TOKEN }} # TODO: Change this when I am sure its working
66+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
6767

6868
github-release:
6969
name: Create GitHub release

Diff for: docs/README.md

+4-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11

22
## How to deploy to pypi
33

4-
1. Pull the project
5-
2. Login to the `fourdigits` account on www.pypi.org
6-
3. Go to `Account Settings` and scroll down till you see `API tokens`
7-
4. Add an API token: Give it a name and for `scope` select `Project: wagtail-external-link-richtext`
8-
and follow the instructions on how to use it
9-
5. Run the following commands in your project folder:
10-
1. `python -m build`
11-
2. `twine check dist/*`
12-
3. `twine upload --repository pypi dist/* --verbose`
4+
1. Pull the project.
5+
2. Go into the `pyproject.toml` and update the `version`
6+
3. Push this change to git
7+
4. Create a tag based on main with the updated `version`

Diff for: pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ exclude = ["sandbox*", "docs*", "tests*"]
1111

1212
[project]
1313
name = "wagtail-external-link-richtext"
14-
version = "1.1.3"
14+
version = "1.1.2"
1515
description = "A feature for the richtext fields in Wagtail"
1616
readme = "README.md"
1717
authors = [{name = "Ruben Hesselink", email = "[email protected]" }]

0 commit comments

Comments
 (0)