Skip to content

Commit

Permalink
Add building back in
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-andersson committed Jun 13, 2023
1 parent 1fd7266 commit dc5d643
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# This workflow will upload a Python package using Twine when a release is
# created. For more information see the following link:
# https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

name: Publish to PyPI

on:
Expand All @@ -20,6 +21,21 @@ jobs:
url: https://pypi.org/p/deepsensor

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U setuptools 'setuptools_scm[toml]' setuptools_scm_git_archive wheel twine
- name: Build and publish
run: |
python setup.py sdist bdist_wheel
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down

0 comments on commit dc5d643

Please sign in to comment.