From 027be9ebc2d60f532e3e886c6f9e153603b3b923 Mon Sep 17 00:00:00 2001 From: Sudipto Baral Date: Sat, 5 Nov 2022 23:45:52 +0600 Subject: [PATCH] [#54] ci: github actions added for releasing into pypi autometically when a tag is created --- .github/workflows/publish.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..1ed2c84 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,17 @@ +name: Publish to PyPI.org +on: + release: + types: [published] +jobs: + pypi-release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - run: python3 -m pip install --upgrade build && python3 -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file