From b68dee05922a3554e35ce1ffbc0ed6eb1cbe0d02 Mon Sep 17 00:00:00 2001 From: EgorPopelyaev Date: Thu, 2 Apr 2026 10:26:40 +0200 Subject: [PATCH 1/9] Add rparity-publish restore to revert changes made by parity-publish to Cargo.toml files --- .../workflows/release-80_publish-crates.yml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/release-80_publish-crates.yml b/.github/workflows/release-80_publish-crates.yml index 93a08cff8cf7..2e51bfe3d4af 100644 --- a/.github/workflows/release-80_publish-crates.yml +++ b/.github/workflows/release-80_publish-crates.yml @@ -358,6 +358,26 @@ jobs: echo "Crates published successfully to $REGISTRY!" fi + - name: Restore clean manifests after publish + if: inputs.resume_from != 'push' + shell: bash + env: + RELEASE_NAME: ${{ inputs.release_name }} + run: | + . ./.github/scripts/release/release_lib.sh + + echo "Restoring clean manifests with version bumps only..." + parity-publish restore + + git add -A + if [[ -n $(git status --porcelain) ]]; then + commit_with_message "chore: restore clean manifests after publish for $RELEASE_NAME" + echo "Clean manifests committed" + else + echo "No changes to restore" + fi + + - name: Generate token for paritytech/polkadot-sdk id: generate_write_token uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1 From 4e03d576fd411dbca95769fba045cb17068c1f17 Mon Sep 17 00:00:00 2001 From: EgorPopelyaev Date: Mon, 6 Apr 2026 11:00:37 +0200 Subject: [PATCH 2/9] Adjust commit message --- .github/workflows/release-80_publish-crates.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-80_publish-crates.yml b/.github/workflows/release-80_publish-crates.yml index 2e51bfe3d4af..09c46244b598 100644 --- a/.github/workflows/release-80_publish-crates.yml +++ b/.github/workflows/release-80_publish-crates.yml @@ -371,7 +371,7 @@ jobs: git add -A if [[ -n $(git status --porcelain) ]]; then - commit_with_message "chore: restore clean manifests after publish for $RELEASE_NAME" + commit_with_message "Restore clean manifests after crates publish for $RELEASE_NAME" echo "Clean manifests committed" else echo "No changes to restore" From 24eab2f20a012dc66e84a91b9f7775d6d83bfe04 Mon Sep 17 00:00:00 2001 From: EgorPopelyaev Date: Mon, 6 Apr 2026 11:04:53 +0200 Subject: [PATCH 3/9] Test in fork --- .../workflows/release-80_publish-crates.yml | 88 +++++++++---------- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/.github/workflows/release-80_publish-crates.yml b/.github/workflows/release-80_publish-crates.yml index 09c46244b598..755ffc4c8ed1 100644 --- a/.github/workflows/release-80_publish-crates.yml +++ b/.github/workflows/release-80_publish-crates.yml @@ -167,10 +167,10 @@ jobs: fi echo "On branch $CRATES_RELEASE_BRANCH" - - name: Rust Cache - uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2 - with: - cache-on-failure: true + # - name: Rust Cache + # uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2 + # with: + # cache-on-failure: true - name: Install parity-publish run: | @@ -280,14 +280,14 @@ jobs: cargo update --workspace --offline || cargo update --workspace echo "Cargo.lock updated" - - name: Verify workspace compiles - if: inputs.resume_from == 'full' || inputs.resume_from == 'apply' - env: - SKIP_WASM_BUILD: 1 - run: | - echo "Checking that rewritten manifests compile (WASM build skipped)..." - cargo check --workspace --all-targets 2>&1 - echo "Workspace compiles successfully" + # - name: Verify workspace compiles + # if: inputs.resume_from == 'full' || inputs.resume_from == 'apply' + # env: + # SKIP_WASM_BUILD: 1 + # run: | + # echo "Checking that rewritten manifests compile (WASM build skipped)..." + # cargo check --workspace --all-targets 2>&1 + # echo "Workspace compiles successfully" - name: Commit version bumps if: inputs.resume_from == 'full' || inputs.resume_from == 'apply' @@ -327,36 +327,36 @@ jobs: echo "Cargo config:" cat ~/.cargo/config.toml || echo "(using defaults)" - - name: Publish crates - if: inputs.resume_from != 'push' - shell: bash - env: - PARITY_PUBLISH_CRATESIO_TOKEN: ${{ secrets.CRATES_IO_API_TOKEN }} - PARITY_PUBLISH_STAGING_CRATESIO_TOKEN: ${{ secrets.STAGING_CRATES_IO_API_TOKEN }} - DRY_RUN: ${{ inputs.dry_run }} - REGISTRY: ${{ inputs.registry }} - PUBLISH_JOBS: ${{ inputs.publish_jobs }} - run: | - PARALLEL_ARGS="" - if [ "$PUBLISH_JOBS" -gt 0 ] 2>/dev/null; then - echo "Parallel publishing enabled with $PUBLISH_JOBS jobs" - PARALLEL_ARGS="-j $PUBLISH_JOBS --no-verify" - fi - - STAGING_ARG="" - if [ "$REGISTRY" = "staging.crates.io" ]; then - STAGING_ARG="--staging" - fi - - if [ "$DRY_RUN" = true ]; then - echo "DRY RUN - Not actually publishing crates" - echo "Target registry: $REGISTRY" - parity-publish apply -p -d $STAGING_ARG $PARALLEL_ARGS - else - echo "Publishing crates to $REGISTRY..." - parity-publish apply -p $STAGING_ARG $PARALLEL_ARGS - echo "Crates published successfully to $REGISTRY!" - fi + # - name: Publish crates + # if: inputs.resume_from != 'push' + # shell: bash + # env: + # PARITY_PUBLISH_CRATESIO_TOKEN: ${{ secrets.CRATES_IO_API_TOKEN }} + # PARITY_PUBLISH_STAGING_CRATESIO_TOKEN: ${{ secrets.STAGING_CRATES_IO_API_TOKEN }} + # DRY_RUN: ${{ inputs.dry_run }} + # REGISTRY: ${{ inputs.registry }} + # PUBLISH_JOBS: ${{ inputs.publish_jobs }} + # run: | + # PARALLEL_ARGS="" + # if [ "$PUBLISH_JOBS" -gt 0 ] 2>/dev/null; then + # echo "Parallel publishing enabled with $PUBLISH_JOBS jobs" + # PARALLEL_ARGS="-j $PUBLISH_JOBS --no-verify" + # fi + + # STAGING_ARG="" + # if [ "$REGISTRY" = "staging.crates.io" ]; then + # STAGING_ARG="--staging" + # fi + + # if [ "$DRY_RUN" = true ]; then + # echo "DRY RUN - Not actually publishing crates" + # echo "Target registry: $REGISTRY" + # parity-publish apply -p -d $STAGING_ARG $PARALLEL_ARGS + # else + # echo "Publishing crates to $REGISTRY..." + # parity-publish apply -p $STAGING_ARG $PARALLEL_ARGS + # echo "Crates published successfully to $REGISTRY!" + # fi - name: Restore clean manifests after publish if: inputs.resume_from != 'push' @@ -384,7 +384,7 @@ jobs: with: app-id: ${{ vars.POLKADOT_SDK_RELEASE_RW_APP_ID }} private-key: ${{ secrets.POLKADOT_SDK_RELEASE_RW_APP_KEY }} - owner: paritytech + owner: EgorPopelyaev repositories: polkadot-sdk - name: Push release branch to paritytech @@ -393,7 +393,7 @@ jobs: TOKEN: ${{ steps.generate_write_token.outputs.token }} run: | echo "Pushing branch $CRATES_RELEASE_BRANCH to paritytech/polkadot-sdk..." - git remote set-url origin "https://x-access-token:${TOKEN}@github.com/paritytech/polkadot-sdk.git" + git remote set-url origin "https://x-access-token:${TOKEN}@github.com/EgorPopelyaev/polkadot-sdk.git" git push origin "$CRATES_RELEASE_BRANCH" echo "Successfully pushed $CRATES_RELEASE_BRANCH to paritytech/polkadot-sdk" From bbc967d79495f7411ecdd4f34f2cc9bdaf47d7a7 Mon Sep 17 00:00:00 2001 From: EgorPopelyaev Date: Mon, 6 Apr 2026 11:08:20 +0200 Subject: [PATCH 4/9] Dont use check for test --- .github/workflows/release-80_publish-crates.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-80_publish-crates.yml b/.github/workflows/release-80_publish-crates.yml index 755ffc4c8ed1..bf8ce3af7bb3 100644 --- a/.github/workflows/release-80_publish-crates.yml +++ b/.github/workflows/release-80_publish-crates.yml @@ -50,14 +50,14 @@ permissions: contents: write jobs: - check-synchronization: - uses: paritytech-release/sync-workflows/.github/workflows/check-synchronization.yml@main - secrets: - fork_writer_app_key: ${{ secrets.UPSTREAM_CONTENT_SYNC_APP_KEY }} + # check-synchronization: + # uses: paritytech-release/sync-workflows/.github/workflows/check-synchronization.yml@main + # secrets: + # fork_writer_app_key: ${{ secrets.UPSTREAM_CONTENT_SYNC_APP_KEY }} set-image: - needs: [ check-synchronization ] - if: needs.check-synchronization.outputs.checks_passed == 'true' + # needs: [ check-synchronization ] + # if: needs.check-synchronization.outputs.checks_passed == 'true' runs-on: ubuntu-latest-m outputs: IMAGE: ${{ steps.set_image.outputs.IMAGE }} From 800330e6d714d6ea7113e7bb1360975ffbd16a79 Mon Sep 17 00:00:00 2001 From: EgorPopelyaev Date: Mon, 6 Apr 2026 11:09:58 +0200 Subject: [PATCH 5/9] use ubuntu-latest for test --- .github/workflows/release-80_publish-crates.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-80_publish-crates.yml b/.github/workflows/release-80_publish-crates.yml index bf8ce3af7bb3..7136f7d46ca3 100644 --- a/.github/workflows/release-80_publish-crates.yml +++ b/.github/workflows/release-80_publish-crates.yml @@ -58,7 +58,8 @@ jobs: set-image: # needs: [ check-synchronization ] # if: needs.check-synchronization.outputs.checks_passed == 'true' - runs-on: ubuntu-latest-m + # runs-on: ubuntu-latest-m + runs-on: ubuntu-latest outputs: IMAGE: ${{ steps.set_image.outputs.IMAGE }} steps: @@ -70,7 +71,8 @@ jobs: publish-crates: needs: set-image - runs-on: ubuntu-latest-m + # runs-on: ubuntu-latest-m + runs-on: ubuntu-latest environment: release env: PGP_KMS_KEY: ${{ secrets.PGP_KMS_SIGN_COMMITS_KEY }} From 616911c0eade51fe790df319cd75a5d01e04d441 Mon Sep 17 00:00:00 2001 From: EgorPopelyaev Date: Mon, 6 Apr 2026 11:35:27 +0200 Subject: [PATCH 6/9] update parity-publish --- .github/workflows/release-80_publish-crates.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-80_publish-crates.yml b/.github/workflows/release-80_publish-crates.yml index 7136f7d46ca3..70bdf68bb894 100644 --- a/.github/workflows/release-80_publish-crates.yml +++ b/.github/workflows/release-80_publish-crates.yml @@ -177,7 +177,7 @@ jobs: - name: Install parity-publish run: | sudo apt-get update && sudo apt-get install -y --no-install-recommends libcurl4-openssl-dev pkg-config - cargo install parity-publish@0.10.13 --locked -q + cargo install parity-publish@0.10.14 --locked -q - name: Run parity-publish plan if: inputs.resume_from == 'full' From 692d5eda95124154ce523effde2dbbd6c8aa9fad Mon Sep 17 00:00:00 2001 From: EgorPopelyaev Date: Mon, 6 Apr 2026 14:13:01 +0200 Subject: [PATCH 7/9] Test post crates without checks --- ...ease-60_post-crates-release-activities.yml | 160 +++++++++--------- 1 file changed, 80 insertions(+), 80 deletions(-) diff --git a/.github/workflows/release-60_post-crates-release-activities.yml b/.github/workflows/release-60_post-crates-release-activities.yml index 61ae66510ed2..95a3e0cd3d13 100644 --- a/.github/workflows/release-60_post-crates-release-activities.yml +++ b/.github/workflows/release-60_post-crates-release-activities.yml @@ -178,84 +178,84 @@ jobs: reorder_prdocs "$VERSION" - - name: Replace path dependencies - run: | - echo "Running replace-all-path-deps.sh..." - bash scripts/release/replace-all-path-deps.sh - - # Show git diff to see what changed - git diff --stat - - - name: Remove versions where path deps are present - run: | - echo "Running delete-versions-if-path-is-present.sh..." - bash scripts/release/delete-versions-if-path-is-present.sh - - # Show git diff to see what changed - git diff --stat - - - name: Remove version from umbrella/Cargo.toml - run: | - echo "Running delete-version-from-umbrella.sh..." - bash scripts/release/delete-version-from-umbrella.sh - - # Show git diff to see what changed - git diff --stat - - - name: Install newer Zepter - run: | - cargo install zepter@1.82.1 --locked -q && zepter --version - - - name: Run Zepter - check issues - run: | - echo "Running zepter run check to identify issues..." - zepter run check || echo "Zepter found issues that need to be fixed" - - - name: Run Zepter - fix issues - run: | - echo "Running zepter to fix issues..." - zepter || echo "Zepter fix completed" - # Show git diff to see what changed - git diff --stat - - - name: Run Zepter - verify fixes - run: | - echo "Running zepter run check again to verify fixes..." - zepter run check || echo "There are still issues to fix manually" - - - name: Run taplo - check formatting - run: | - echo "Running taplo format check..." - taplo format --check --config .config/taplo.toml || echo "Taplo found formatting issues" - - - name: Run taplo - format - run: | - echo "Running taplo format..." - taplo format --config .config/taplo.toml - # Show git diff to see what changed - git diff --stat - - - name: Run taplo - verify formatting - run: | - echo "Running taplo format check again..." - taplo format --check --config .config/taplo.toml || echo "There are still formatting issues" - - - name: Install Python dependencies - run: | - echo "Installing Python dependencies..." - pip3 install toml "cargo-workspace>=1.2.6" - - - name: Run workspace check - run: | - echo "Running workspace check..." - python3 .github/scripts/check-workspace.py . --exclude \ - "substrate/frame/contracts/fixtures/build" \ - "substrate/frame/contracts/fixtures/contracts/common" - - - name: Deny git dependencies - run: | - echo "Checking for git dependencies..." - python3 .github/scripts/deny-git-deps.py . + # - name: Replace path dependencies + # run: | + # echo "Running replace-all-path-deps.sh..." + # bash scripts/release/replace-all-path-deps.sh + + # # Show git diff to see what changed + # git diff --stat + + # - name: Remove versions where path deps are present + # run: | + # echo "Running delete-versions-if-path-is-present.sh..." + # bash scripts/release/delete-versions-if-path-is-present.sh + + # # Show git diff to see what changed + # git diff --stat + + # - name: Remove version from umbrella/Cargo.toml + # run: | + # echo "Running delete-version-from-umbrella.sh..." + # bash scripts/release/delete-version-from-umbrella.sh + + # # Show git diff to see what changed + # git diff --stat + + # - name: Install newer Zepter + # run: | + # cargo install zepter@1.82.1 --locked -q && zepter --version + + # - name: Run Zepter - check issues + # run: | + # echo "Running zepter run check to identify issues..." + # zepter run check || echo "Zepter found issues that need to be fixed" + + # - name: Run Zepter - fix issues + # run: | + # echo "Running zepter to fix issues..." + # zepter || echo "Zepter fix completed" + # # Show git diff to see what changed + # git diff --stat + + # - name: Run Zepter - verify fixes + # run: | + # echo "Running zepter run check again to verify fixes..." + # zepter run check || echo "There are still issues to fix manually" + + # - name: Run taplo - check formatting + # run: | + # echo "Running taplo format check..." + # taplo format --check --config .config/taplo.toml || echo "Taplo found formatting issues" + + # - name: Run taplo - format + # run: | + # echo "Running taplo format..." + # taplo format --config .config/taplo.toml + # # Show git diff to see what changed + # git diff --stat + + # - name: Run taplo - verify formatting + # run: | + # echo "Running taplo format check again..." + # taplo format --check --config .config/taplo.toml || echo "There are still formatting issues" + + # - name: Install Python dependencies + # run: | + # echo "Installing Python dependencies..." + # pip3 install toml "cargo-workspace>=1.2.6" + + # - name: Run workspace check + # run: | + # echo "Running workspace check..." + # python3 .github/scripts/check-workspace.py . --exclude \ + # "substrate/frame/contracts/fixtures/build" \ + # "substrate/frame/contracts/fixtures/contracts/common" + + # - name: Deny git dependencies + # run: | + # echo "Checking for git dependencies..." + # python3 .github/scripts/deny-git-deps.py . - name: Check git status before commit run: | @@ -304,7 +304,7 @@ jobs: BASE_RELEASE="$FULL_RELEASE" fi - TARGET_REPO="paritytech/polkadot-sdk" + TARGET_REPO="EgorPopelyaev/polkadot-sdk" # Determine if running from a fork or the main repo if [ "$GH_REPOSITORY" = "$TARGET_REPO" ]; then @@ -349,7 +349,7 @@ jobs: GH_REPOSITORY_OWNER: ${{ github.repository_owner }} shell: bash run: | - TARGET_REPO="paritytech/polkadot-sdk" + TARGET_REPO="EgorPopelyaev/polkadot-sdk" # Match the head format used when creating the PR if [ "$GH_REPOSITORY" = "$TARGET_REPO" ]; then From 6561555977469ac2f4abb6f150c774300ebd5926 Mon Sep 17 00:00:00 2001 From: EgorPopelyaev Date: Mon, 6 Apr 2026 15:20:54 +0200 Subject: [PATCH 8/9] Cleanup --- ...ease-60_post-crates-release-activities.yml | 83 +----------------- .../workflows/release-80_publish-crates.yml | 85 +++++++++---------- 2 files changed, 42 insertions(+), 126 deletions(-) diff --git a/.github/workflows/release-60_post-crates-release-activities.yml b/.github/workflows/release-60_post-crates-release-activities.yml index 95a3e0cd3d13..930a0baed6dd 100644 --- a/.github/workflows/release-60_post-crates-release-activities.yml +++ b/.github/workflows/release-60_post-crates-release-activities.yml @@ -178,85 +178,6 @@ jobs: reorder_prdocs "$VERSION" - # - name: Replace path dependencies - # run: | - # echo "Running replace-all-path-deps.sh..." - # bash scripts/release/replace-all-path-deps.sh - - # # Show git diff to see what changed - # git diff --stat - - # - name: Remove versions where path deps are present - # run: | - # echo "Running delete-versions-if-path-is-present.sh..." - # bash scripts/release/delete-versions-if-path-is-present.sh - - # # Show git diff to see what changed - # git diff --stat - - # - name: Remove version from umbrella/Cargo.toml - # run: | - # echo "Running delete-version-from-umbrella.sh..." - # bash scripts/release/delete-version-from-umbrella.sh - - # # Show git diff to see what changed - # git diff --stat - - # - name: Install newer Zepter - # run: | - # cargo install zepter@1.82.1 --locked -q && zepter --version - - # - name: Run Zepter - check issues - # run: | - # echo "Running zepter run check to identify issues..." - # zepter run check || echo "Zepter found issues that need to be fixed" - - # - name: Run Zepter - fix issues - # run: | - # echo "Running zepter to fix issues..." - # zepter || echo "Zepter fix completed" - # # Show git diff to see what changed - # git diff --stat - - # - name: Run Zepter - verify fixes - # run: | - # echo "Running zepter run check again to verify fixes..." - # zepter run check || echo "There are still issues to fix manually" - - # - name: Run taplo - check formatting - # run: | - # echo "Running taplo format check..." - # taplo format --check --config .config/taplo.toml || echo "Taplo found formatting issues" - - # - name: Run taplo - format - # run: | - # echo "Running taplo format..." - # taplo format --config .config/taplo.toml - # # Show git diff to see what changed - # git diff --stat - - # - name: Run taplo - verify formatting - # run: | - # echo "Running taplo format check again..." - # taplo format --check --config .config/taplo.toml || echo "There are still formatting issues" - - # - name: Install Python dependencies - # run: | - # echo "Installing Python dependencies..." - # pip3 install toml "cargo-workspace>=1.2.6" - - # - name: Run workspace check - # run: | - # echo "Running workspace check..." - # python3 .github/scripts/check-workspace.py . --exclude \ - # "substrate/frame/contracts/fixtures/build" \ - # "substrate/frame/contracts/fixtures/contracts/common" - - # - name: Deny git dependencies - # run: | - # echo "Checking for git dependencies..." - # python3 .github/scripts/deny-git-deps.py . - - name: Check git status before commit run: | echo "=== Git status ===" @@ -304,7 +225,7 @@ jobs: BASE_RELEASE="$FULL_RELEASE" fi - TARGET_REPO="EgorPopelyaev/polkadot-sdk" + TARGET_REPO="paritytech/polkadot-sdk" # Determine if running from a fork or the main repo if [ "$GH_REPOSITORY" = "$TARGET_REPO" ]; then @@ -349,7 +270,7 @@ jobs: GH_REPOSITORY_OWNER: ${{ github.repository_owner }} shell: bash run: | - TARGET_REPO="EgorPopelyaev/polkadot-sdk" + TARGET_REPO="paritytech/polkadot-sdk" # Match the head format used when creating the PR if [ "$GH_REPOSITORY" = "$TARGET_REPO" ]; then diff --git a/.github/workflows/release-80_publish-crates.yml b/.github/workflows/release-80_publish-crates.yml index 70bdf68bb894..f025c47da61e 100644 --- a/.github/workflows/release-80_publish-crates.yml +++ b/.github/workflows/release-80_publish-crates.yml @@ -169,11 +169,6 @@ jobs: fi echo "On branch $CRATES_RELEASE_BRANCH" - # - name: Rust Cache - # uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2 - # with: - # cache-on-failure: true - - name: Install parity-publish run: | sudo apt-get update && sudo apt-get install -y --no-install-recommends libcurl4-openssl-dev pkg-config @@ -282,14 +277,14 @@ jobs: cargo update --workspace --offline || cargo update --workspace echo "Cargo.lock updated" - # - name: Verify workspace compiles - # if: inputs.resume_from == 'full' || inputs.resume_from == 'apply' - # env: - # SKIP_WASM_BUILD: 1 - # run: | - # echo "Checking that rewritten manifests compile (WASM build skipped)..." - # cargo check --workspace --all-targets 2>&1 - # echo "Workspace compiles successfully" + - name: Verify workspace compiles + if: inputs.resume_from == 'full' || inputs.resume_from == 'apply' + env: + SKIP_WASM_BUILD: 1 + run: | + echo "Checking that rewritten manifests compile (WASM build skipped)..." + cargo check --workspace --all-targets 2>&1 + echo "Workspace compiles successfully" - name: Commit version bumps if: inputs.resume_from == 'full' || inputs.resume_from == 'apply' @@ -329,36 +324,36 @@ jobs: echo "Cargo config:" cat ~/.cargo/config.toml || echo "(using defaults)" - # - name: Publish crates - # if: inputs.resume_from != 'push' - # shell: bash - # env: - # PARITY_PUBLISH_CRATESIO_TOKEN: ${{ secrets.CRATES_IO_API_TOKEN }} - # PARITY_PUBLISH_STAGING_CRATESIO_TOKEN: ${{ secrets.STAGING_CRATES_IO_API_TOKEN }} - # DRY_RUN: ${{ inputs.dry_run }} - # REGISTRY: ${{ inputs.registry }} - # PUBLISH_JOBS: ${{ inputs.publish_jobs }} - # run: | - # PARALLEL_ARGS="" - # if [ "$PUBLISH_JOBS" -gt 0 ] 2>/dev/null; then - # echo "Parallel publishing enabled with $PUBLISH_JOBS jobs" - # PARALLEL_ARGS="-j $PUBLISH_JOBS --no-verify" - # fi - - # STAGING_ARG="" - # if [ "$REGISTRY" = "staging.crates.io" ]; then - # STAGING_ARG="--staging" - # fi - - # if [ "$DRY_RUN" = true ]; then - # echo "DRY RUN - Not actually publishing crates" - # echo "Target registry: $REGISTRY" - # parity-publish apply -p -d $STAGING_ARG $PARALLEL_ARGS - # else - # echo "Publishing crates to $REGISTRY..." - # parity-publish apply -p $STAGING_ARG $PARALLEL_ARGS - # echo "Crates published successfully to $REGISTRY!" - # fi + - name: Publish crates + if: inputs.resume_from != 'push' + shell: bash + env: + PARITY_PUBLISH_CRATESIO_TOKEN: ${{ secrets.CRATES_IO_API_TOKEN }} + PARITY_PUBLISH_STAGING_CRATESIO_TOKEN: ${{ secrets.STAGING_CRATES_IO_API_TOKEN }} + DRY_RUN: ${{ inputs.dry_run }} + REGISTRY: ${{ inputs.registry }} + PUBLISH_JOBS: ${{ inputs.publish_jobs }} + run: | + PARALLEL_ARGS="" + if [ "$PUBLISH_JOBS" -gt 0 ] 2>/dev/null; then + echo "Parallel publishing enabled with $PUBLISH_JOBS jobs" + PARALLEL_ARGS="-j $PUBLISH_JOBS --no-verify" + fi + + STAGING_ARG="" + if [ "$REGISTRY" = "staging.crates.io" ]; then + STAGING_ARG="--staging" + fi + + if [ "$DRY_RUN" = true ]; then + echo "DRY RUN - Not actually publishing crates" + echo "Target registry: $REGISTRY" + parity-publish apply -p -d $STAGING_ARG $PARALLEL_ARGS + else + echo "Publishing crates to $REGISTRY..." + parity-publish apply -p $STAGING_ARG $PARALLEL_ARGS + echo "Crates published successfully to $REGISTRY!" + fi - name: Restore clean manifests after publish if: inputs.resume_from != 'push' @@ -386,7 +381,7 @@ jobs: with: app-id: ${{ vars.POLKADOT_SDK_RELEASE_RW_APP_ID }} private-key: ${{ secrets.POLKADOT_SDK_RELEASE_RW_APP_KEY }} - owner: EgorPopelyaev + owner: paritytech repositories: polkadot-sdk - name: Push release branch to paritytech @@ -395,7 +390,7 @@ jobs: TOKEN: ${{ steps.generate_write_token.outputs.token }} run: | echo "Pushing branch $CRATES_RELEASE_BRANCH to paritytech/polkadot-sdk..." - git remote set-url origin "https://x-access-token:${TOKEN}@github.com/EgorPopelyaev/polkadot-sdk.git" + git remote set-url origin "https://x-access-token:${TOKEN}@github.com/paritytech/polkadot-sdk.git" git push origin "$CRATES_RELEASE_BRANCH" echo "Successfully pushed $CRATES_RELEASE_BRANCH to paritytech/polkadot-sdk" From f85fd0febb8514ba3b5a378815fd91ef6893ec1d Mon Sep 17 00:00:00 2001 From: EgorPopelyaev Date: Mon, 6 Apr 2026 15:36:10 +0200 Subject: [PATCH 9/9] activate sync check and use large runners --- .../workflows/release-80_publish-crates.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release-80_publish-crates.yml b/.github/workflows/release-80_publish-crates.yml index f025c47da61e..f3c6710a6614 100644 --- a/.github/workflows/release-80_publish-crates.yml +++ b/.github/workflows/release-80_publish-crates.yml @@ -50,16 +50,15 @@ permissions: contents: write jobs: - # check-synchronization: - # uses: paritytech-release/sync-workflows/.github/workflows/check-synchronization.yml@main - # secrets: - # fork_writer_app_key: ${{ secrets.UPSTREAM_CONTENT_SYNC_APP_KEY }} + check-synchronization: + uses: paritytech-release/sync-workflows/.github/workflows/check-synchronization.yml@main + secrets: + fork_writer_app_key: ${{ secrets.UPSTREAM_CONTENT_SYNC_APP_KEY }} set-image: - # needs: [ check-synchronization ] - # if: needs.check-synchronization.outputs.checks_passed == 'true' - # runs-on: ubuntu-latest-m - runs-on: ubuntu-latest + needs: [ check-synchronization ] + if: needs.check-synchronization.outputs.checks_passed == 'true' + runs-on: ubuntu-latest-m outputs: IMAGE: ${{ steps.set_image.outputs.IMAGE }} steps: @@ -71,8 +70,7 @@ jobs: publish-crates: needs: set-image - # runs-on: ubuntu-latest-m - runs-on: ubuntu-latest + runs-on: ubuntu-latest-m environment: release env: PGP_KMS_KEY: ${{ secrets.PGP_KMS_SIGN_COMMITS_KEY }}