From 4226c1688ffc9749c44a3a0789d4cd5580eca111 Mon Sep 17 00:00:00 2001 From: Craig <3979063+craig8@users.noreply.github.com> Date: Tue, 29 Nov 2022 13:17:13 -0800 Subject: [PATCH] Added dispatch to pypi --- .github/workflows/dispatch-to-pypi.yml | 39 ++++++++++++++++++++++++++ .github/workflows/publish_to_pypi.yml | 39 -------------------------- 2 files changed, 39 insertions(+), 39 deletions(-) create mode 100644 .github/workflows/dispatch-to-pypi.yml delete mode 100644 .github/workflows/publish_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 diff --git a/.github/workflows/publish_to_pypi.yml b/.github/workflows/publish_to_pypi.yml deleted file mode 100644 index 85963cc..0000000 --- a/.github/workflows/publish_to_pypi.yml +++ /dev/null @@ -1,39 +0,0 @@ -# Documentation located -# https://github.com/marketplace/actions/publish-python-poetry-package -name: Publish to PyPi - -on: - release: - types: [published] - -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-20.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