Skip to content

Commit 278ae6b

Browse files
author
Mark Moberts
committed
feat: update release workflow for PyPI publishing and bump version to 0.2.2
1 parent 074682e commit 278ae6b

3 files changed

Lines changed: 11 additions & 33 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -6,38 +6,16 @@ on:
66
- 'v*.*.*'
77

88
jobs:
9-
release:
9+
pypi-publish:
10+
name: upload release to PyPI
1011
runs-on: ubuntu-latest
11-
12+
# Specifying a GitHub environment is optional, but strongly encouraged
13+
environment: pypi
14+
permissions:
15+
# IMPORTANT: this permission is mandatory for Trusted Publishing
16+
id-token: write
1217
steps:
13-
- name: Checkout code
14-
uses: actions/checkout@v3
15-
16-
- name: Set up Python
17-
uses: actions/setup-python@v4
18-
with:
19-
python-version: '3.12'
20-
21-
- name: Install dependencies
22-
run: |
23-
python -m pip install --upgrade pip
24-
pip install -r requirements.txt
25-
pip install wheel twine
26-
27-
- name: Build project
28-
run: |
29-
python setup.py sdist bdist_wheel
30-
31-
- name: Publish to PyPI
32-
env:
33-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
34-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
35-
run: |
36-
twine upload dist/*
18+
# retrieve your distributions here
3719

38-
- name: Create GitHub release
39-
uses: softprops/action-gh-release@v1
40-
with:
41-
files: dist/*
42-
env:
43-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
- name: Publish package distributions to PyPI
21+
uses: pypa/gh-action-pypi-publish@release/v1
10.5 KB
Binary file not shown.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ max-line-length = 140
33

44
[tool.poetry]
55
name = "robotframework-mitmlibrary"
6-
version = "0.2.1"
6+
version = "0.2.2"
77
description = "A Robot Framework library for managing and manipulating HTTP requests and responses using a man-in-the-middle proxy approach. It allows blocking requests, customizing responses, adding delays, and more."
88
authors = ["Mark <markmoberts@gmail.com>"]
99
license = "MIT"

0 commit comments

Comments
 (0)