From accf2cb7aac87f148bd88069504c973c58b65dc8 Mon Sep 17 00:00:00 2001 From: William Shin Date: Wed, 2 Aug 2023 19:17:42 -0700 Subject: [PATCH] [MAINTENANCE] Test out releaser github action (#8478) --- .github/workflows/release.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000000..41e0a2b95932 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +name: release +on: + push: + tags: + - '[0-9]+.[0-9]+.[0-9]+' +jobs: + build-n-publish: + name: Build and publish Python distributions to PyPI + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Set up Python 3.8 + uses: actions/setup-python@v3 + with: + python-version: '3.8' + - name: Update pip + run: python -m pip install --upgrade pip + - name: Install Twine and Wheel, and prepare packaging + run: | + pip install twine wheel + git config --global user.email "team@greatexpectations.io" + git config --global user.name "Great Expectations" + - name: Build distribution + run: | + python setup.py sdist + python setup.py bdist_wheel + - name: Publish distribution to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{secrets.TEST_PYPI_API_TOKEN}} + repository-url: https://test.pypi.org/legacy/