Skip to content

v0.6.6

v0.6.6 #23

Workflow file for this run

# Publish archives to PyPI and TestPyPI using GitHub Actions
name: Publish to PyPI
# Only run for pushes to the main branch and releases.
on:
release:
types:
- published
jobs:
publish-pypi:
name: Publish to PyPI
runs-on: ubuntu-latest
if: github.repository == 'kanglcn/moraine'
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Set up Python
uses: actions/[email protected]
with:
python-version: '3.10'
- name: Install dependencies
shell: bash
run: |
set -ux
python -m pip install --upgrade pip
pip install -Uq nbdev
pip install -e ".[dev]"
- name: Build source and wheel distributions
run: |
python setup.py sdist bdist_wheel
echo ""
echo "Generated files:"
ls -lh dist/
- name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/[email protected]
with:
password: ${{ secrets.PYPI_API_TOKEN }}