Skip to content

Commit 27991d7

Browse files
=zyskarch
authored andcommitted
Environment: Adapt release workflow to support PyPI's trusted publisher framework.
1 parent e196ac2 commit 27991d7

3 files changed

Lines changed: 14 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ jobs:
1313
poetry-version: [1.3.0]
1414
os: [ubuntu-latest]
1515
runs-on: ${{ matrix.os }}
16+
environment:
17+
name: pypi
18+
url: https://pypi.org/p/pytestarch
19+
permissions:
20+
id-token: write
1621
steps:
1722
- uses: actions/checkout@v4
1823
- uses: actions/setup-python@v5
@@ -22,9 +27,7 @@ jobs:
2227
uses: abatilo/actions-poetry@v2.2.0
2328
with:
2429
poetry-version: ${{ matrix.poetry-version }}
25-
- name: Publish
26-
env:
27-
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
28-
run: |
29-
poetry config pypi-token.pypi $PYPI_TOKEN
30-
poetry publish --build
30+
- name: Build
31+
run: poetry build
32+
- name: Publish package distributions to PyPI
33+
uses: pypa/gh-action-pypi-publish@release/v1

docs/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
This project uses semantic versioning and follows [keep a changelog](https://keepachangelog.com).
44

5+
## [3.0.1] -- 2024-07-25
6+
### Fixed
7+
- Regex syntax error in newer python versions
8+
59
## [3.0.0] -- 2024-05-27
610
### Added
711
- Support for python 2.12

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "PyTestArch"
3-
version = "3.0.0"
3+
version = "3.0.1"
44
description = "Test framework for software architecture based on imports between modules"
55
authors = ["zyskarch <zyskarch@gmail.com>"]
66
maintainers = ["zyskarch <zyskarch@gmail.com>"]

0 commit comments

Comments
 (0)