Skip to content

Merge remote-tracking branch 'skeleton/main' into range_normalization #1

Merge remote-tracking branch 'skeleton/main' into range_normalization

Merge remote-tracking branch 'skeleton/main' into range_normalization #1

Workflow file for this run

name: Release library as a PyPI wheel and sdist on tag
on:
release:
types: [created]
jobs:
build-and-publish-to-pypi:
name: Build and publish library to PyPI
<<<<<<< HEAD

Check failure on line 10 in .github/workflows/pypi-release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pypi-release.yml

Invalid workflow file

You have an error in your yaml syntax on line 10
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@master
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install pypa/build
run: python -m pip install build --user
- name: Build a binary wheel and a source tarball
run: 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:
password: ${{ secrets.PYPI_API_TOKEN }}
=======
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install pypa/build
run: python -m pip install build --user
- name: Build a binary wheel and a source tarball
run: python -m build --sdist --wheel --outdir dist/
- name: Upload built archives
uses: actions/upload-artifact@v3
with:
name: pypi_archives
path: dist/*
create-gh-release:
name: Create GH release
needs:
- build-pypi-distribs
runs-on: ubuntu-22.04
steps:
- name: Download built archives
uses: actions/download-artifact@v3
with:
name: pypi_archives
path: dist
- name: Create GH release
uses: softprops/action-gh-release@v1
with:
draft: true
files: dist/*
create-pypi-release:
name: Create PyPI release
needs:
- create-gh-release
runs-on: ubuntu-22.04
steps:
- name: Download built archives
uses: actions/download-artifact@v3
with:
name: pypi_archives
path: dist
- name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
>>>>>>> skeleton/main