Skip to content

Move from eta formulation to kappa formulation #31

Move from eta formulation to kappa formulation

Move from eta formulation to kappa formulation #31

Workflow file for this run

on:
pull_request:
release:
types:
- published
name: Build
jobs:
python-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: '3.10'
- name: Install build dependencies
run: python -m pip install build
- name: Build source distribution and wheel
run: python -m build --sdist --wheel
- uses: actions/upload-artifact@v3
with:
name: wheels
path: dist/*
upload-testpypi:
needs: [python-build]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v3
with:
name: wheels
path: dist
- uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.TESTPYPI_GH_TOKEN }}
repository_url: https://test.pypi.org/legacy/
upload-pypi:
needs: [python-build, upload-testpypi]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v3
with:
name: wheels
path: dist
- uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_GH_TOKEN }}