diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..7826d49 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +jlloyd@widen.com \ No newline at end of file diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml new file mode 100644 index 0000000..fa66330 --- /dev/null +++ b/.github/workflows/releases.yml @@ -0,0 +1,33 @@ +name: Publish New Releases to Pypi + +on: + release: + types: [published] + workflow_dispatch: + +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.9' + - name: Install Poetry + uses: snok/install-poetry@v1 + with: + version: 1.1.13 + - name: Install dependencies + run: | + poetry env use python + poetry install --no-root + - name: Build package + run: poetry build + - name: Publish package + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN_PROD }} \ No newline at end of file