/
niceSOFT
/
python3-build
Обзор
Документация
Войти
/
niceSOFT
/
python3-build
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
.github/workflows/cd.yml
66 строк
2 KB
dependabot[bot]
build(deps): bump the github-actions group with 5 updates (#1141)
01 авг 2026, 16:39
Не верифицирован
01 авг 2026, 16:39
e39c8e4
Код
Авторство
О чём код?
name: CD on: workflow_dispatch: pull_request: branches: - main push: tags: - "[0-9]+.[0-9]+.[0-9]+" - "[0-9]+.[0-9]+.[0-9]+.post[0-9]+" release: types: - published concurrency: group: cd-${{ github.ref }} cancel-in-progress: true permissions: {} jobs: dist: name: Build distribution runs-on: ubuntu-latest permissions: contents: read # to checkout steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - uses: hynek/build-and-inspect-python-package@d44ca7d91762de7a7d5436ddae667c6da6d1c3df # v2.18.0 create-release: name: Create GitHub Release needs: [dist] runs-on: ubuntu-latest if: startsWith(github.ref, 'refs/tags/') permissions: contents: write # to create release steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 persist-credentials: false - name: Create GitHub Release run: gh release create "$RELEASE_TAG" --generate-notes env: GH_TOKEN: ${{ github.token }} RELEASE_TAG: ${{ github.ref_name }} publish: name: Publish to PyPI needs: [dist] runs-on: ubuntu-latest if: startsWith(github.ref, 'refs/tags/') || (github.event_name == 'release' && github.event.action == 'published') environment: name: pypi url: https://pypi.org/p/build permissions: id-token: write # to sign attestation attestations: write # to create attestation steps: - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 with: name: Packages path: dist - name: Generate artifact attestation for sdist and wheel uses: actions/attest-build-provenance@0f67c3f4856b2e3261c31976d6725780e5e4c373 # v4.1.1 with: subject-path: "dist/build-*" - uses: pypa/gh-action-pypi-publish@ba38be9e461d3875417946c167d0b5f3d385a247 # v1.14.1