зеркало из
https://github.com/VIGINUM-FR/D3lta.git
synced 2025-10-29 13:06:10 +02:00
feat(ci): add guards for local debugging via nektos/act
Этот коммит содержится в:
родитель
b41ab2ce19
Коммит
1bd593cf43
7
.github/workflows/publish-to-pypi.yml
поставляемый
7
.github/workflows/publish-to-pypi.yml
поставляемый
@ -5,6 +5,9 @@ on:
|
|||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
|
|
||||||
|
env:
|
||||||
|
ACT: false # env.ACT == true when running inside nektos/act
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build distribution
|
name: Build distribution
|
||||||
@ -52,6 +55,8 @@ jobs:
|
|||||||
path: dist/
|
path: dist/
|
||||||
|
|
||||||
- run: gh release upload "${TAG_NAME}" dist/*.{tar.gz,whl}
|
- run: gh release upload "${TAG_NAME}" dist/*.{tar.gz,whl}
|
||||||
|
# skip step when debugging locally via nektos/act
|
||||||
|
if: ${{ !env.ACT }}
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
TAG_NAME: ${{ github.event.release.tag_name }}
|
TAG_NAME: ${{ github.event.release.tag_name }}
|
||||||
@ -74,6 +79,8 @@ jobs:
|
|||||||
path: dist/
|
path: dist/
|
||||||
|
|
||||||
- name: Publish distribution to PyPI
|
- name: Publish distribution to PyPI
|
||||||
|
# skip step when debugging locally via nektos/act
|
||||||
|
if: ${{ !env.ACT }}
|
||||||
uses: pypa/gh-action-pypi-publish@release/v1
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
with:
|
with:
|
||||||
print-hash: true
|
print-hash: true
|
||||||
|
|||||||
Загрузка…
x
Ссылка в новой задаче
Block a user