Skip to content

Commit

Permalink
Separate test and deploy workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
cmalinmayor committed Jun 24, 2024
1 parent 09bf91d commit d1a881b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 22 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy

on:
push:
tags: ["*"]
workflow_dispatch:

build-n-publish:
name: Build and publish Python 🐍 distributions πŸ“¦ to PyPI
runs-on: ubuntu-latest
if: contains(github.ref, 'tags')
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Build a binary wheel and a source tarball
run: |
python -m pip install -U pip
python -m pip install -U setuptools setuptools_scm build
python -m build --sdist --wheel --outdir dist/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
- uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
Original file line number Diff line number Diff line change
Expand Up @@ -67,25 +67,3 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: funkelab/motile-napari-plugin

build-n-publish:
name: Build and publish Python 🐍 distributions πŸ“¦ to PyPI
runs-on: ubuntu-latest
if: contains(github.ref, 'tags')
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Build a binary wheel and a source tarball
run: |
python -m pip install -U pip
python -m pip install -U setuptools setuptools_scm build
python -m build --sdist --wheel --outdir dist/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
- uses: softprops/action-gh-release@v2
with:
generate_release_notes: true

0 comments on commit d1a881b

Please sign in to comment.