From a6e50eae6d9c73d3abc2b3790df3ecc38923102c Mon Sep 17 00:00:00 2001 From: Shwetha Niddodi Date: Tue, 29 Nov 2022 13:38:09 -0800 Subject: [PATCH] Dispatch to pypi --- .github/workflows/dispatch-to-pypi.yml | 39 ++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/dispatch-to-pypi.yml diff --git a/.github/workflows/dispatch-to-pypi.yml b/.github/workflows/dispatch-to-pypi.yml new file mode 100644 index 0000000..b114704 --- /dev/null +++ b/.github/workflows/dispatch-to-pypi.yml @@ -0,0 +1,39 @@ +--- +# Documentation located +# https://github.com/marketplace/actions/publish-python-poetry-package +name: Dispatch to PyPi + +on: + workflow_dispatch: + +defaults: + run: + shell: bash + +env: + LANG: en_US.utf-8 + LC_ALL: en_US.utf-8 + PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} + +jobs: + + publish_to_pypi: + + runs-on: ubuntu-22.04 + + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" + - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + + - name: Checkout code + uses: actions/checkout@v2 + + - name: Build and publish to pypi + uses: JRubics/poetry-publish@v1.7 + with: + # These are only needed when using test.pypi + #repository_name: testpypi + #repository_url: https://test.pypi.org/legacy/ + pypi_token: ${{ secrets.PYPI_TOKEN }} + ignore_dev_requirements: "yes" \ No newline at end of file