Skip to content

Commit b96c8fb

Browse files
committed
simplfy deploy_prod github worflow
no need of an option to republish to dev
1 parent e5a3c59 commit b96c8fb

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

.github/workflows/python_deploy_prod.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,6 @@ on:
1818
required: false
1919
type: boolean
2020
default: true
21-
environment:
22-
description: 'The environment to publish to'
23-
required: true
24-
type: choice
25-
default: prod
26-
options:
27-
- prod
28-
- dev
2921

3022
concurrency:
3123
group: ${{ github.workflow }}-${{ github.event.release.tag_name || github.event.inputs.release-tag || github.run_id }}
@@ -37,7 +29,7 @@ jobs:
3729
if: ${{ github.event_name == 'release' || github.event.inputs.publish-conda == 'true' }}
3830
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-release_conda_assets.yml@main
3931
with:
40-
virtual-repo-names: ${{ inputs.environment == 'dev' && '["public-conda-dev"]' || '["public-conda-prod"]' }}
32+
virtual-repo-names: '["public-conda-prod"]'
4133
release-tag: ${{ github.event.release.tag_name || github.event.inputs.release-tag }}
4234
secrets:
4335
JFROG_ARTIFACTORY_URL: ${{ secrets.JFROG_ARTIFACTORY_URL }}
@@ -48,7 +40,7 @@ jobs:
4840
uses: MiraGeoscience/CI-tools/.github/workflows/reusable-python-release_pypi_assets.yml@main
4941
with:
5042
package-name: 'geoapps-utils'
51-
virtual-repo-names: ${{ inputs.environment == 'dev' && '["public-pypi-dev", "test-pypi"]' || '["public-pypi-prod", "pypi"]' }}
43+
virtual-repo-names: '["public-pypi-prod", "pypi"]'
5244
release-tag: ${{ github.event.release.tag_name || github.event.inputs.release-tag }}
5345
secrets:
5446
JFROG_ARTIFACTORY_URL: ${{ secrets.JFROG_ARTIFACTORY_URL }}

0 commit comments

Comments
 (0)