Skip to content

Commit

Permalink
[DEVOPS-504] Update deployment workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
SophieCurinier committed Oct 9, 2024
1 parent d4a42e8 commit 9642d23
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/python_deploy_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
20 changes: 16 additions & 4 deletions .github/workflows/python_deploy_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 9642d23

Please sign in to comment.