File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111permissions :
1212 contents : write
1313 pull-requests : write
14+ id-token : write
1415
1516jobs :
1617 release-please :
4243 git add COMPATIBILITY.md
4344 git diff --cached --quiet || git commit -m "chore: add ${VERSION} to COMPATIBILITY.md"
4445 git push
46+
47+ - name : Check out repo for PyPI publish
48+ if : ${{ steps.release.outputs.release_created }}
49+ uses : actions/checkout@v4
50+
51+ - name : Set up Python
52+ if : ${{ steps.release.outputs.release_created }}
53+ uses : actions/setup-python@v5
54+ with :
55+ python-version : " 3.12"
56+
57+ - name : Build package
58+ if : ${{ steps.release.outputs.release_created }}
59+ run : |
60+ pip install build
61+ python -m build
62+
63+ - name : Publish to PyPI
64+ if : ${{ steps.release.outputs.release_created }}
65+ uses : pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ name: Publish to PyPI
33on :
44 release :
55 types : [published]
6+ workflow_dispatch :
67
78permissions :
89 id-token : write
Original file line number Diff line number Diff line change 44
55| Plugin version | NetBox version | Python | Notes |
66| ----------------| ---------------| --------| -------|
7+ | 0.2.0 | 4.5.x | 3.12+ | Tested |
78| 0.1.15 | 4.5.x | 3.12+ | Tested |
89| 0.1.x | 3.5+ | 3.10+ | Minimum supported (dcim migration 0172) |
910
You can’t perform that action at this time.
0 commit comments