Skip to content

Update dependencies #242

Update dependencies

Update dependencies #242

Workflow file for this run

# https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
# https://www.ianwootten.co.uk/2020/10/23/publishing-to-pypi-using-github-actions/
name: Publish nuts to PyPI and release on GitHub
on: [push]
jobs:
build-and-publish-to-pypi:
if: startsWith(github.ref, 'refs/tags')
name: Build and publish nuts to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install poetry
run: pip install poetry
- name: Configure API token
run: poetry config pypi-token.pypi "${{ secrets.PYPI_API_TOKEN }}"
- name: Build and then publish nuts to PyPI
run: poetry publish --build
relase-on-github:
if: startsWith(github.ref, 'refs/tags')
name: Release on GitHub
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Release on Github
uses: softprops/action-gh-release@v3
with:
body_path: ${{ github.workspace }}/release_notes/${{ github.ref_name }}.md