Skip to content

Commit 9ef7ad1

Browse files
authored
fix: Release workflows (#126)
1 parent 379df78 commit 9ef7ad1

File tree

3 files changed

+26
-16
lines changed

3 files changed

+26
-16
lines changed

.github/workflows/publish-to-live-pypi.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,17 @@ jobs:
99
build-n-publish:
1010
name: Build and publish Python 🐍 distributions 📦 to pypi
1111
runs-on: ubuntu-latest
12+
environment:
13+
name: pypi
14+
url: https://pypi.org/p/djangocms-picture
15+
permissions:
16+
id-token: write
1217
steps:
13-
- uses: actions/checkout@master
14-
- name: Set up Python 3.9
15-
uses: actions/setup-python@v1
18+
- uses: actions/checkout@v3
19+
- name: Set up Python 3.10
20+
uses: actions/setup-python@v4
1621
with:
17-
python-version: 3.9
22+
python-version: '3.11'
1823

1924
- name: Install pypa/build
2025
run: >-
@@ -33,7 +38,4 @@ jobs:
3338
3439
- name: Publish distribution 📦 to PyPI
3540
if: startsWith(github.ref, 'refs/tags')
36-
uses: pypa/gh-action-pypi-publish@master
37-
with:
38-
user: __token__
39-
password: ${{ secrets.PYPI_API_TOKEN }}
41+
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/publish-to-test-pypi.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,17 @@ jobs:
99
build-n-publish:
1010
name: Build and publish Python 🐍 distributions 📦 to TestPyPI
1111
runs-on: ubuntu-latest
12+
environment:
13+
name: pypi
14+
url: https://test.pypi.org/p/djangocms-picture
15+
permissions:
16+
id-token: write
1217
steps:
13-
- uses: actions/checkout@master
14-
- name: Set up Python 3.9
15-
uses: actions/setup-python@v1
18+
- uses: actions/checkout@v3
19+
- name: Set up Python 3.10
20+
uses: actions/setup-python@v4
1621
with:
17-
python-version: 3.9
22+
python-version: '3.11'
1823

1924
- name: Install pypa/build
2025
run: >-
@@ -32,9 +37,7 @@ jobs:
3237
.
3338
3439
- name: Publish distribution 📦 to Test PyPI
35-
uses: pypa/gh-action-pypi-publish@master
40+
uses: pypa/gh-action-pypi-publish@release/v1
3641
with:
37-
user: __token__
38-
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
39-
repository_url: https://test.pypi.org/legacy/
42+
repository-url: https://test.pypi.org/legacy/
4043
skip_existing: true

CHANGELOG.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
Changelog
33
=========
44

5+
4.1.1 (2023-10-19)
6+
==================
7+
8+
* Updated release workflows
9+
510
4.1.0
611
=====
712

0 commit comments

Comments
 (0)