From efac44becacd40e1a38f1a1165cf7f5973fa43da Mon Sep 17 00:00:00 2001 From: Nicolas BRIERE Date: Fri, 16 Dec 2022 10:06:26 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Use=20push=20Pypi=20template=20w?= =?UTF-8?q?orkflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/push-pypi.yml | 33 --------------------------------- .github/workflows/release.yml | 2 +- 2 files changed, 1 insertion(+), 34 deletions(-) delete mode 100644 .github/workflows/push-pypi.yml diff --git a/.github/workflows/push-pypi.yml b/.github/workflows/push-pypi.yml deleted file mode 100644 index 294a01d..0000000 --- a/.github/workflows/push-pypi.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: 'Push-Pypi' - -on: - workflow_call: - inputs: - image_url: - required: true - type: string - workdir: - required: true - type: string - env_django_settings_module: - required: false - type: string - run_command: - required: true - type: string - -jobs: - run-docker: - runs-on: ubuntu-latest - container: - image: ${{ inputs.image_url }} - credentials: - username: ${{ github.actor }} - password: ${{ secrets.github_token }} - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: run-command - working-directory: ${{ inputs.workdir }} - run: poetry publish --build -u ${{ secrets.PYPI_USER }} -p ${{ secrets.PYPI_PWD }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d386bd8..a60634a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,7 +50,7 @@ jobs: unit-tests, static-metrics, ] - uses: ./.github/workflows/push-pypi.yml + uses: ZeroGachis/.github/.github/workflows/push-pypi.yml@v1 with: image_url: ${{ needs.build.outputs.image-url }} workdir: /home/src/nurse