From bdfacc62a4e8f7d4116a41529e3ccba2235244da Mon Sep 17 00:00:00 2001 From: Josh Lloyd Date: Fri, 17 Mar 2023 12:51:34 -0600 Subject: [PATCH] added release script --- .github/CODEOWNERS | 1 + .github/workflows/releases.yml | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .github/CODEOWNERS create mode 100644 .github/workflows/releases.yml 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