/
githubmirror
/
wheel
Обзор
Документация
Войти
/
githubmirror
/
wheel
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
.github/workflows/publish.yml
58 строк
1 KB
Alex Grönholm
Flit no longer supports --setup-py
12 авг 2026, 01:01
12 авг 2026, 01:01
f06d4db
Код
Авторство
О чём код?
name: Publish packages to PyPI on: push: tags: - "[0-9]+.[0-9]+.[0-9]+" - "[0-9]+.[0-9]+.[0-9]+.post[0-9]+" - "[0-9]+.[0-9]+.[0-9]+[a-b][0-9]+" - "[0-9]+.[0-9]+.[0-9]+rc[0-9]+" jobs: build: runs-on: ubuntu-latest environment: release steps: - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: python-version: 3.x - name: Install dependencies run: pip install flit - name: Create packages run: flit build - name: Store package artifacts uses: actions/upload-artifact@v4 with: name: dist path: dist publish: needs: build runs-on: ubuntu-latest environment: release permissions: id-token: write steps: - name: Retrieve package artifacts uses: actions/download-artifact@v4 - name: Upload packages uses: pypa/gh-action-pypi-publish@release/v1 release: name: Create a GitHub release needs: build runs-on: ubuntu-latest permissions: contents: write steps: - uses: actions/checkout@v4 - id: changelog uses: agronholm/release-notes@v1 with: path: docs/news.rst version_pattern: "^\\*\\*([0-9a-z.]+) " - uses: ncipollo/release-action@v1 with: body: ${{ steps.changelog.outputs.changelog }}