Merge remote-tracking branch 'skeleton/main' into range_normalization #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
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 |