From 27b025f41df3e089a4277a0328010961459fbd49 Mon Sep 17 00:00:00 2001 From: Daniel Pressel Date: Mon, 3 Apr 2023 16:10:17 -0400 Subject: [PATCH] add pypi CI/CD --- .github/workflows/pypi.yml | 29 +++++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pypi.yml diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml new file mode 100644 index 0000000..b50ccad --- /dev/null +++ b/.github/workflows/pypi.yml @@ -0,0 +1,29 @@ +name: Publish to PyPI + +on: + push: + tags: + - '*' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v1 + - name: Setup Python + uses: actions/setup-python@v1 + with: + python-version: 3.8 + - name: Install dependencies + run: python -m pip install --upgrade pip setuptools wheel + - name: Build Package + run: | + python setup.py sdist bdist_wheel + cd .. + - name: Publish AlexaTM Package + if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.pypi_password }} + diff --git a/README.md b/README.md index 9d8c616..b993a28 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Alexa Teacher Model +# Alexa Teacher Models This is the official Alexa Teacher Model program github page.