Update README.md #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mkdir -p FractalNet/.github/workflows | ||
| cd FractalNet/.github/workflows | ||
| touch publish.yml | ||
| name: Publish to PyPI | ||
| on: | ||
| push: | ||
| tags: | ||
| - 'v*' # Публикува само при push на тагове като v0.1.1 | ||
| permissions: | ||
| id-token: write # Задължително за Trusted Publisher | ||
| contents: read | ||
| jobs: | ||
| build-and-publish: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v3 | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: '3.11' | ||
| - name: Install build tools | ||
| run: pip install build | ||
| - name: Build package | ||
| run: python -m build | ||
| - name: Publish to PyPI | ||
| uses: pypa/gh-action-pypi-publish@v1.8.10 | ||
| git add .github/workflows/publish.yml | ||
| git commit -m "Добавен publish.yml за автоматично качване в PyPI" | ||
| git push origin main | ||