Skip to content

Commit

Permalink
[MAINTENANCE] Test out releaser github action (#8478)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinnnyshinshin authored Aug 3, 2023
1 parent 6eb88bb commit accf2cb
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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 "[email protected]"
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/

0 comments on commit accf2cb

Please sign in to comment.