Skip to content

Commit 964cc8c

Browse files
authored
Merge pull request #104 from thc202/release-workflow
Add workflow to release to PyPI
2 parents 58700ac + dec39e0 commit 964cc8c

File tree

2 files changed

+21
-11
lines changed

2 files changed

+21
-11
lines changed

.github/workflows/release.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Release PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
7+
jobs:
8+
pypi-publish:
9+
name: Upload release to PyPI
10+
runs-on: ubuntu-latest
11+
environment:
12+
name: release
13+
url: https://pypi.org/p/zaproxy
14+
permissions:
15+
id-token: write
16+
steps:
17+
- run: poetry build
18+
- name: Publish package distributions to PyPI
19+
uses: pypa/gh-action-pypi-publish@release/v1

RELEASING.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,5 @@ Tag (and push) the new version:
99
git tag -s 0.0.X -m "Version 0.0.X."
1010
git push upstream 0.0.X
1111

12-
(Checkout the tag and ensure the working copy is clean.)
13-
14-
Build the distribution (source and wheel) files:
15-
16-
poetry build
17-
18-
Upload to PyPi:
19-
20-
poetry publish
21-
22-
The user must have permissions to upload to the `zaproxy` package.
12+
The workflow [Release PyPI](https://github.com/zaproxy/zap-api-python/blob/main/.github/workflows/release.yml)
13+
will be triggered by the tag push and release to PyPI.

0 commit comments

Comments
 (0)