-
-
Notifications
You must be signed in to change notification settings - Fork 49
49 lines (39 loc) · 1.03 KB
/
publish_release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Publish PyPI Release
on:
release:
types: [ created ]
permissions:
id-token: write
contents: read
jobs:
publish_release:
runs-on: ubuntu-latest
steps:
- name: Run Cimon (eBPF).
uses: cycodelabs/cimon-action@v0
with:
prevent: true
allowed-hosts: >
files.pythonhosted.org
install.python-poetry.org
pypi.org
upload.pypi.org
*.sigstore.dev
- name: Checkout repository.
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Python.
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Setup Poetry.
uses: snok/install-poetry@v1
with:
version: 1.8.3
- name: Install Poetry Plugin.
run: poetry self add "poetry-dynamic-versioning[plugin]"
- name: Build package.
run: poetry build
- name: Publish a Python distribution to PyPI.
uses: pypa/gh-action-pypi-publish@release/v1