BjornFJohansson/pydna

View on GitHub
.github/workflows/pydna_pypi_build_workflow.yml

Summary

Maintainability
Test Coverage
name: Build for PyPI
on:
  release:
    types: [published]
jobs:
  build:
    runs-on: ubuntu-latest
    if: github.event.release.target_commitish == 'master'
    steps:
      - uses: actions/checkout@v3
      - name: Build and publish to pypi
        uses: JRubics/poetry-publish@v1.16
        with:
          pypi_token: ${{ secrets.PYPI_TOKEN }}
          plugins: "poetry-dynamic-versioning[plugin]"