зеркало из
https://github.com/VIGINUM-FR/D3lta.git
synced 2025-10-29 13:06:10 +02:00
fix(ci): restrict release workflow to the main branch
- Prevents creating releases from unprotected branches.
Этот коммит содержится в:
родитель
b1d2b93c24
Коммит
080dd40e02
2
.github/workflows/publish-to-pypi.yml
поставляемый
2
.github/workflows/publish-to-pypi.yml
поставляемый
@ -8,6 +8,8 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build distribution
|
name: Build distribution
|
||||||
|
# based on https://stackoverflow.com/a/74318141
|
||||||
|
if: ${{ github.event.release.target_commitish == 'main'}}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
Загрузка…
x
Ссылка в новой задаче
Block a user