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