Skip to content

Merge pull request #65 from EIDOSLAB/development #51

Merge pull request #65 from EIDOSLAB/development

Merge pull request #65 from EIDOSLAB/development #51

Workflow file for this run

name: Build and upload to PyPI
on:
push
jobs:
build_wheels:
name: Build release
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install deps
run: pip install setuptools wheel
- name: Build wheels
run: python setup.py sdist bdist_wheel
- uses: actions/upload-artifact@v4
with:
path: ./dist/*
upload_pypi:
needs: build_wheels
runs-on: ubuntu-20.04
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1.12
with:
user: __token__
password: ${{ secrets.torchstain_deploy_token }}