Skip to content

Commit 69771e8

Browse files
authored
Update publish.yml
1 parent f6b3100 commit 69771e8

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
11
mkdir -p FractalNet/.github/workflows
22
cd FractalNet/.github/workflows
33
touch publish.yml
4+
5+
name: Publish to PyPI
6+
7+
on:
8+
push:
9+
tags:
10+
- 'v*' # Публикува само при push на тагове като v0.1.1
11+
12+
permissions:
13+
id-token: write # Задължително за Trusted Publisher
14+
contents: read
15+
16+
jobs:
17+
build-and-publish:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v3
22+
23+
- name: Set up Python
24+
uses: actions/setup-python@v4
25+
with:
26+
python-version: '3.11'
27+
28+
- name: Install build tools
29+
run: pip install build
30+
31+
- name: Build package
32+
run: python -m build
33+
34+
- name: Publish to PyPI
35+
uses: pypa/gh-action-pypi-publish@v1.8.10
36+

0 commit comments

Comments
 (0)