diff --git a/.github/workflows/release-41_publish-rpm-package.yml b/.github/workflows/release-41_publish-rpm-package.yml index 6b6b05125c31c..8fa2ab72c3316 100644 --- a/.github/workflows/release-41_publish-rpm-package.yml +++ b/.github/workflows/release-41_publish-rpm-package.yml @@ -9,6 +9,11 @@ on: default: polkadot-stable2412 required: true type: string + distribution: + description: Distribution where to publish rpm package (release, staging) + default: release + required: true + type: string workflow_call: inputs: @@ -16,6 +21,11 @@ on: description: Current final release tag in the format polkadot-stableYYMM or polkadot-stable-YYMM-X required: true type: string + distribution: + description: Distribution where to publish rpm package (release, staging) + default: release + required: true + type: string jobs: call-publish-workflow: @@ -24,6 +34,6 @@ jobs: tag: ${{ inputs.tag }} distribution: ${{ inputs.distribution }} package_type: 'rpm' - aws_repo_base_path: "s3://releases-package-repos" + aws_repo_base_path: ${{ inputs.distribution == 'staging' && 's3://staging-packages-repos' || 's3://releases-package-repos' }} cloudfront_distribution_id: "E36FKEYWDXAZYJ" secrets: inherit diff --git a/.github/workflows/release-70_combined-publish-release.yml b/.github/workflows/release-70_combined-publish-release.yml index 6f1953da63ec2..e319706db6e91 100644 --- a/.github/workflows/release-70_combined-publish-release.yml +++ b/.github/workflows/release-70_combined-publish-release.yml @@ -96,6 +96,7 @@ jobs: uses: ./.github/workflows/release-41_publish-rpm-package.yml with: tag: ${{ inputs.release_tag }} + distribution: ${{ inputs.distribution }} secrets: inherit # ==============================================