From 125e17d1aec092b0bfab973a9e5ec0adb4b3d67b Mon Sep 17 00:00:00 2001 From: SophieCurinier Date: Sun, 20 Oct 2024 19:05:34 -0400 Subject: [PATCH] [DEVOPS-511] Update deploy workflows to release pip package on pypi --- .github/workflows/python_deploy_dev.yml | 5 +++-- .github/workflows/python_deploy_prod.yml | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python_deploy_dev.yml b/.github/workflows/python_deploy_dev.yml index 14364908b2..3462158c7d 100644 --- a/.github/workflows/python_deploy_dev.yml +++ b/.github/workflows/python_deploy_dev.yml @@ -24,7 +24,8 @@ jobs: package-name: 'mira-simpeg' version-tag: ${{ github.ref_name }} python-version: '3.10' - virtual-repo-names: '["public-pypi-dev"]' + virtual-repo-names: '["public-pypi-dev", "test-pypi"]' secrets: JFROG_ARTIFACTORY_URL: ${{ secrets.JFROG_ARTIFACTORY_URL }} - JFROG_ARTIFACTORY_TOKEN: ${{ secrets.JFROG_ARTIFACTORY_TOKEN }} \ No newline at end of file + JFROG_ARTIFACTORY_TOKEN: ${{ secrets.JFROG_ARTIFACTORY_TOKEN }} + PYPI_TOKEN: ${{ secrets.TEST_PYPI_TOKEN }} diff --git a/.github/workflows/python_deploy_prod.yml b/.github/workflows/python_deploy_prod.yml index ce754069da..8b007456e6 100644 --- a/.github/workflows/python_deploy_prod.yml +++ b/.github/workflows/python_deploy_prod.yml @@ -23,7 +23,8 @@ jobs: package-name: 'mira-simpeg' version-tag: ${{ github.ref_name }} python-version: '3.10' - virtual-repo-names: '["public-pypi-prod"]' + virtual-repo-names: '["public-pypi-prod", "pypi"]' secrets: JFROG_ARTIFACTORY_URL: ${{ secrets.JFROG_ARTIFACTORY_URL }} - JFROG_ARTIFACTORY_TOKEN: ${{ secrets.JFROG_ARTIFACTORY_TOKEN }} \ No newline at end of file + JFROG_ARTIFACTORY_TOKEN: ${{ secrets.JFROG_ARTIFACTORY_TOKEN }} + PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}