From d0c81933521569a8a23f1de5b347115000735ce7 Mon Sep 17 00:00:00 2001 From: Gopal Nambiar Date: Mon, 19 Dec 2022 10:25:09 +0530 Subject: [PATCH 1/4] Update README.md Added authors --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 8fd9106..91cbd86 100644 --- a/README.md +++ b/README.md @@ -33,3 +33,9 @@ pip install SHRUG-anon ``` >>> anonalgos.truncation(input_pks, 12) ``` + +##Authors +Authors: +- [Shreyas Madhav](https://github.com/shreyas-madhav) +- [Ruthuvikas Ravikumar](https://github.com/Ruthuvikas) +- [Gopal Nambiar](https://github.com/gopuman) From 1acdcdddd8c199cdc79789d4830af342061a4a82 Mon Sep 17 00:00:00 2001 From: Gopal Nambiar Date: Mon, 19 Dec 2022 10:25:36 +0530 Subject: [PATCH 2/4] Update README.md --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 91cbd86..2734464 100644 --- a/README.md +++ b/README.md @@ -34,8 +34,7 @@ pip install SHRUG-anon >>> anonalgos.truncation(input_pks, 12) ``` -##Authors -Authors: +## Authors - [Shreyas Madhav](https://github.com/shreyas-madhav) - [Ruthuvikas Ravikumar](https://github.com/Ruthuvikas) - [Gopal Nambiar](https://github.com/gopuman) From 981a0c31e77ae0bfa93e0e48511093895cd820b1 Mon Sep 17 00:00:00 2001 From: Gopal Nambiar Date: Mon, 19 Dec 2022 20:48:45 +0530 Subject: [PATCH 3/4] Create python-publish.yml --- .github/workflows/python-publish.yml | 39 ++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/python-publish.yml diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml new file mode 100644 index 0000000..bdaab28 --- /dev/null +++ b/.github/workflows/python-publish.yml @@ -0,0 +1,39 @@ +# This workflow will upload a Python Package using Twine when a release is created +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Upload Python Package + +on: + release: + types: [published] + +permissions: + contents: read + +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + - name: Build package + run: python -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} From 46f7675fff18748d20002376b5219df3810b8233 Mon Sep 17 00:00:00 2001 From: Gopal Nambiar Date: Mon, 19 Dec 2022 20:50:54 +0530 Subject: [PATCH 4/4] Update python-publish.yml --- .github/workflows/python-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index bdaab28..1c6caa4 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -35,5 +35,5 @@ jobs: - name: Publish package uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} + user: ${{ secrets.PYPI_USERNAME }} + password: ${{ secrets.PYPI_PASSWORD }}