We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6b3100 commit 69771e8Copy full SHA for 69771e8
1 file changed
.github/workflows/publish.yml
@@ -1,3 +1,36 @@
1
mkdir -p FractalNet/.github/workflows
2
cd FractalNet/.github/workflows
3
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