mirror of
https://github.com/jeertmans/manim-slides.git
synced 2025-08-06 14:19:52 +08:00
run deploy pipeline only if tag
This commit is contained in:
2
.github/workflows/deploy-pipy.yaml
vendored
2
.github/workflows/deploy-pipy.yaml
vendored
@ -4,6 +4,7 @@ on: push
|
|||||||
jobs:
|
jobs:
|
||||||
build-n-publish:
|
build-n-publish:
|
||||||
name: Build and publish to PyPI
|
name: Build and publish to PyPI
|
||||||
|
if: startsWith(github.ref, 'refs/tags')
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
@ -16,7 +17,6 @@ jobs:
|
|||||||
- name: Build binary wheel and a source tarball
|
- name: Build binary wheel and a source tarball
|
||||||
run: python -m build --sdist --wheel --outdir dist/ .
|
run: python -m build --sdist --wheel --outdir dist/ .
|
||||||
- name: Publish to PyPI
|
- name: Publish to PyPI
|
||||||
if: startsWith(github.ref, 'refs/tags')
|
|
||||||
uses: pypa/gh-action-pypi-publish@master
|
uses: pypa/gh-action-pypi-publish@master
|
||||||
with:
|
with:
|
||||||
password: ${{ secrets.PYPI_API_TOKEN }}
|
password: ${{ secrets.PYPI_API_TOKEN }}
|
Reference in New Issue
Block a user