Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/release-20_build-rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ on:

jobs:
check-synchronization:
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: paritytech-release/sync-workflows/.github/workflows/check-synchronization.yml@main
with:
concurrency_suffix: build-rc
secrets:
fork_writer_app_key: ${{ secrets.UPSTREAM_CONTENT_SYNC_APP_KEY }}

validate-inputs:
needs: [check-synchronization]
if: ${{ !cancelled() && (needs.check-synchronization.result == 'skipped' || needs.check-synchronization.outputs.checks_passed == 'true') }}
if: needs.check-synchronization.outputs.checks_passed == 'true'
runs-on: ubuntu-latest
outputs:
release_tag: ${{ steps.validate_inputs.outputs.release_tag }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release-21_build-runtimes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,15 @@ on:

jobs:
check-synchronization:
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: paritytech-release/sync-workflows/.github/workflows/check-synchronization.yml@main
with:
concurrency_suffix: build-runtimes
secrets:
fork_writer_app_key: ${{ secrets.UPSTREAM_CONTENT_SYNC_APP_KEY }}

validate-inputs:
needs: [check-synchronization]
if: ${{ !cancelled() && (needs.check-synchronization.result == 'skipped' || needs.check-synchronization.outputs.checks_passed == 'true') }}
if: needs.check-synchronization.outputs.checks_passed == 'true'
runs-on: ubuntu-latest
outputs:
release_tag: ${{ steps.validate_inputs.outputs.release_tag }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ on:
jobs:
check-synchronization:
uses: paritytech-release/sync-workflows/.github/workflows/check-synchronization.yml@main
with:
concurrency_suffix: combined-builds
secrets:
fork_writer_app_key: ${{ secrets.UPSTREAM_CONTENT_SYNC_APP_KEY }}

Expand Down Expand Up @@ -87,6 +89,7 @@ jobs:
chain: ${{ inputs.chain }}
runtime_dir: ${{ inputs.runtime_dir }}
release_tag: ${{ needs.validate-inputs.outputs.release_tag }}

secrets: inherit
permissions:
id-token: write
Expand All @@ -99,6 +102,7 @@ jobs:
with:
binary: ${{ inputs.binary }}
release_tag: ${{ needs.validate-inputs.outputs.release_tag }}

secrets: inherit
permissions:
id-token: write
Expand All @@ -115,6 +119,7 @@ jobs:
runtimes: '${{ needs.build-runtimes-flow.outputs.published_runtimes }}'
no_runtimes: ${{ inputs.no_runtimes }}
crates_only: false

secrets: inherit

trigger-release-draft-without-runtimes:
Expand All @@ -126,4 +131,5 @@ jobs:
build_run_id: ${{ github.run_id }}
no_runtimes: ${{ inputs.no_runtimes }}
crates_only: false

secrets: inherit
5 changes: 3 additions & 2 deletions .github/workflows/release-30_publish_release_draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,15 @@ on:

jobs:
check-synchronization:
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: paritytech-release/sync-workflows/.github/workflows/check-synchronization.yml@main
with:
concurrency_suffix: publish-release-draft
secrets:
fork_writer_app_key: ${{ secrets.UPSTREAM_CONTENT_SYNC_APP_KEY }}

validate-inputs:
needs: [ check-synchronization ]
if: ${{ !cancelled() && (needs.check-synchronization.result == 'skipped' || needs.check-synchronization.outputs.checks_passed == 'true') }}
if: needs.check-synchronization.outputs.checks_passed == 'true'
runs-on: ubuntu-latest
outputs:
release_tag: ${{ steps.validate_inputs.outputs.release_tag }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release-31_promote-rc-to-final.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@ on:
jobs:

check-synchronization:
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: paritytech-release/sync-workflows/.github/workflows/check-synchronization.yml@main
with:
concurrency_suffix: promote-rc-to-final
secrets:
fork_writer_app_key: ${{ secrets.UPSTREAM_CONTENT_SYNC_APP_KEY }}

validate-inputs:
needs: [ check-synchronization ]
if: ${{ !cancelled() && (needs.check-synchronization.result == 'skipped' || needs.check-synchronization.outputs.checks_passed == 'true') }}
if: needs.check-synchronization.outputs.checks_passed == 'true'
runs-on: ubuntu-latest
outputs:
release_tag: ${{ steps.validate_inputs.outputs.release_tag }}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release-40_publish-deb-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,17 @@ on:
required: true
type: string


jobs:
check-synchronization:
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: paritytech-release/sync-workflows/.github/workflows/check-synchronization.yml@main
with:
concurrency_suffix: publish-deb
secrets:
fork_writer_app_key: ${{ secrets.UPSTREAM_CONTENT_SYNC_APP_KEY }}
call-publish-workflow:
needs: [check-synchronization]
if: ${{ !cancelled() && (needs.check-synchronization.result == 'skipped' || needs.check-synchronization.outputs.checks_passed == 'true') }}
if: needs.check-synchronization.outputs.checks_passed == 'true'
uses: ./.github/workflows/release-reusable-publish-packages.yml
with:
tag: ${{ inputs.tag }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release-41_publish-rpm-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,14 @@ on:

jobs:
check-synchronization:
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: paritytech-release/sync-workflows/.github/workflows/check-synchronization.yml@main
with:
concurrency_suffix: publish-rpm
secrets:
fork_writer_app_key: ${{ secrets.UPSTREAM_CONTENT_SYNC_APP_KEY }}
call-publish-workflow:
needs: [check-synchronization]
if: ${{ !cancelled() && (needs.check-synchronization.result == 'skipped' || needs.check-synchronization.outputs.checks_passed == 'true') }}
if: needs.check-synchronization.outputs.checks_passed == 'true'
uses: ./.github/workflows/release-reusable-publish-packages.yml
with:
tag: ${{ inputs.tag }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release-50_publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,15 @@ env:

jobs:
check-synchronization:
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: paritytech-release/sync-workflows/.github/workflows/check-synchronization.yml@main
with:
concurrency_suffix: publish-docker-${{ inputs.binary }}
secrets:
fork_writer_app_key: ${{ secrets.UPSTREAM_CONTENT_SYNC_APP_KEY }}

validate-inputs:
needs: [check-synchronization]
if: ${{ !cancelled() && (needs.check-synchronization.result == 'skipped' || needs.check-synchronization.outputs.checks_passed == 'true') }}
if: needs.check-synchronization.outputs.checks_passed == 'true'
runs-on: ubuntu-latest
outputs:
version: ${{ steps.validate_inputs.outputs.VERSION }}
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/release-70_combined-publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ jobs:

check-synchronization:
uses: paritytech-release/sync-workflows/.github/workflows/check-synchronization.yml@main
with:
concurrency_suffix: combined-publish
secrets:
fork_writer_app_key: ${{ secrets.UPSTREAM_CONTENT_SYNC_APP_KEY }}

Expand All @@ -67,6 +69,7 @@ jobs:
with:
binary: ${{ inputs.binary }}
release_tag: ${{ inputs.release_tag }}

secrets: inherit

# ==============================================
Expand All @@ -79,6 +82,7 @@ jobs:
with:
tag: ${{ needs.promote-rc-to-final.outputs.final_tag }}
distribution: release

secrets: inherit

publish-rpm-package:
Expand All @@ -88,6 +92,7 @@ jobs:
with:
tag: ${{ needs.promote-rc-to-final.outputs.final_tag }}
distribution: ${{ inputs.distribution }}

secrets: inherit

# ==============================================
Expand All @@ -105,6 +110,7 @@ jobs:
owner: ${{ inputs.owner }}
version: ${{ inputs.version }}
stable_tag: ${{ needs.promote-rc-to-final.outputs.final_tag }}

secrets: inherit

publish-docker-polkadot-parachain:
Expand All @@ -120,6 +126,7 @@ jobs:
owner: ${{ inputs.owner }}
version: ${{ inputs.version }}
stable_tag: ${{ needs.promote-rc-to-final.outputs.final_tag }}

secrets: inherit

publish-docker-polkadot-omni-node:
Expand All @@ -135,6 +142,7 @@ jobs:
owner: ${{ inputs.owner }}
version: ${{ inputs.version }}
stable_tag: ${{ needs.promote-rc-to-final.outputs.final_tag }}

secrets: inherit

publish-docker-chain-spec-builder:
Expand All @@ -150,4 +158,5 @@ jobs:
owner: ${{ inputs.owner }}
version: ${{ inputs.version }}
stable_tag: ${{ needs.promote-rc-to-final.outputs.final_tag }}

secrets: inherit
2 changes: 2 additions & 0 deletions .github/workflows/release-80_publish-crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ permissions:
jobs:
check-synchronization:
uses: paritytech-release/sync-workflows/.github/workflows/check-synchronization.yml@main
with:
concurrency_suffix: publish-crates
secrets:
fork_writer_app_key: ${{ secrets.UPSTREAM_CONTENT_SYNC_APP_KEY }}

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release-reusable-publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ on:

jobs:
check-synchronization:
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: paritytech-release/sync-workflows/.github/workflows/check-synchronization.yml@main
with:
concurrency_suffix: reusable-publish-packages
secrets:
fork_writer_app_key: ${{ secrets.UPSTREAM_CONTENT_SYNC_APP_KEY }}

validate-inputs:
needs: [check-synchronization]
if: ${{ !cancelled() && (needs.check-synchronization.result == 'skipped' || needs.check-synchronization.outputs.checks_passed == 'true') }}
if: needs.check-synchronization.outputs.checks_passed == 'true'
runs-on: ubuntu-latest
outputs:
release_tag: ${{ steps.validate_inputs.outputs.release_tag }}
Expand Down
Loading