Skip to content

Commit 708aa1b

Browse files
new: Added GitHub release workflow with Pypi Trusted Publisher Management.
1 parent a55a8fe commit 708aa1b

File tree

2 files changed

+701
-0
lines changed

2 files changed

+701
-0
lines changed

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
on:
2+
release:
3+
types:
4+
- published
5+
6+
name: release
7+
8+
jobs:
9+
pypi-publish:
10+
name: Upload release to PyPI
11+
runs-on: ubuntu-latest
12+
environment:
13+
name: pypi
14+
url: https://pypi.org/p/MetasploitSight
15+
16+
permissions:
17+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
- name: Install Poetry
23+
run: python -m pip install --upgrade pip poetry
24+
- name: Build artifacts
25+
run: poetry build
26+
- name: Publish package distributions to PyPI
27+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)