[go: nahoru, domu]

Skip to content

Commit

Permalink
Only run release job for tagged commits.
Browse files Browse the repository at this point in the history
  • Loading branch information
eerimoq committed Jan 4, 2021
1 parent b507c7d commit cd791f4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,27 +38,23 @@ jobs:
release:
needs: [test]
runs-on: ubuntu-20.04
if: startsWith(github.ref, 'refs/tags')

steps:
- name: Checkout
if: startsWith(github.ref, 'refs/tags')
uses: actions/checkout@v1
- name: Set up Python 3.9
if: startsWith(github.ref, 'refs/tags')
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install pypa/build
if: startsWith(github.ref, 'refs/tags')
run: |
python -m pip install build --user
- name: Build a binary wheel and a source tarball
if: startsWith(github.ref, 'refs/tags')
run: |
git clean -dfx
python -m build --sdist --wheel --outdir dist/ .
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
skip_existing: true
Expand Down

0 comments on commit cd791f4

Please sign in to comment.