From 9642d23c6dca3956cab5489d59deb8ccf0abe726 Mon Sep 17 00:00:00 2001 From: SophieCurinier Date: Wed, 9 Oct 2024 15:37:29 -0400 Subject: [PATCH] [DEVOPS-504] Update deployment workflows --- .github/workflows/python_deploy_dev.yml | 14 +++++++++++++- .github/workflows/python_deploy_prod.yml | 20 ++++++++++++++++---- 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python_deploy_dev.yml b/.github/workflows/python_deploy_dev.yml index a575b95414..dc100adb2c 100644 --- a/.github/workflows/python_deploy_dev.yml +++ b/.github/workflows/python_deploy_dev.yml @@ -12,7 +12,19 @@ jobs: with: package-name: 'mira-simpeg' python-version: '3.10' - virtual-repo-name: 'public-conda-dev' + virtual-repo-nameS: '["public-conda-dev"]' secrets: JFROG_ARTIFACTORY_URL: ${{ secrets.JFROG_ARTIFACTORY_URL }} JFROG_ARTIFACTORY_TOKEN: ${{ secrets.JFROG_ARTIFACTORY_TOKEN }} + call-workflow-pypi-publish: + name: Publish development pypi package on JFrog Artifactory + uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-publish_pypi_package.yml@DEVOPS-504 + with: + package-manager: 'setuptools' + package-name: 'mira-simpeg' + version-tag: ${{ github.ref_name }} + python-version: '3.10' + virtual-repo-names: '["public-pypi-dev"]' + secrets: + JFROG_ARTIFACTORY_URL: ${{ secrets.JFROG_ARTIFACTORY_URL }} + JFROG_ARTIFACTORY_TOKEN: ${{ secrets.JFROG_ARTIFACTORY_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/python_deploy_prod.yml b/.github/workflows/python_deploy_prod.yml index 118be828d9..6ffe61cf8f 100644 --- a/.github/workflows/python_deploy_prod.yml +++ b/.github/workflows/python_deploy_prod.yml @@ -2,16 +2,28 @@ name: Deploy python package in production on: release: - types: [published] # Trigger for draft release + types: [published] jobs: call-workflow-conda-publish: - name: Publish development conda package on JFrog Artifactory + name: Publish production conda package on JFrog Artifactory uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-publish_conda_package.yml@DEVOPS-504 with: - package-name: 'mira-omf' + package-name: 'mira-simpeg' python-version: '3.10' - virtual-repo-name: 'public-conda-prod' + virtual-repo-names: '["public-pypi-prod"]' secrets: JFROG_ARTIFACTORY_URL: ${{ secrets.JFROG_ARTIFACTORY_URL }} JFROG_ARTIFACTORY_TOKEN: ${{ secrets.JFROG_ARTIFACTORY_TOKEN }} + call-workflow-pypi-publish: + name: Publish production pypi package on JFrog Artifactory + uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-publish_pypi_package.yml@DEVOPS-504 + with: + package-manager: 'setuptools' + package-name: 'mira-simpeg' + version-tag: ${{ github.ref_name }} + python-version: '3.10' + virtual-repo-names: '["public-pypi-prod"]' + secrets: + JFROG_ARTIFACTORY_URL: ${{ secrets.JFROG_ARTIFACTORY_URL }} + JFROG_ARTIFACTORY_TOKEN: ${{ secrets.JFROG_ARTIFACTORY_TOKEN }} \ No newline at end of file