From ae16a26d6cd2c7798b9fb9f3899f1974b71de942 Mon Sep 17 00:00:00 2001 From: Mohsin Mukhtiar Lashari <160683327+president-xd@users.noreply.github.com> Date: Wed, 21 Aug 2024 05:17:55 +0500 Subject: [PATCH] Create release.yml --- .github/release.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/release.yml diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..24392e6 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,29 @@ +name: Release + +on: + push: + tags: + - 'v0.1.1' # Match tags that follow semantic versioning + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + pip install -r requirements.txt + + - name: Build and publish + env: + PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} + run: | + python setup.py sdist bdist_wheel + twine upload dist/*