From d80c86e12d55240a8e3600b4c2b4a864d21f5fe7 Mon Sep 17 00:00:00 2001 From: Egor_P Date: Mon, 6 Apr 2026 18:37:38 +0200 Subject: [PATCH 1/2] BACKPORT-CONFLICT --- ...ease-60_post-crates-release-activities.yml | 79 ------------------- .../workflows/release-80_publish-crates.yml | 27 +++++++ 2 files changed, 27 insertions(+), 79 deletions(-) diff --git a/.github/workflows/release-60_post-crates-release-activities.yml b/.github/workflows/release-60_post-crates-release-activities.yml index 21432648946c5..4d83b364344f0 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 ===" diff --git a/.github/workflows/release-80_publish-crates.yml b/.github/workflows/release-80_publish-crates.yml index 090d9706f4fd0..766ad2b9e8e9a 100644 --- a/.github/workflows/release-80_publish-crates.yml +++ b/.github/workflows/release-80_publish-crates.yml @@ -162,6 +162,7 @@ jobs: fi echo "On branch $CRATES_RELEASE_BRANCH" +<<<<<<< HEAD - name: Install Rust 1.93 shell: bash run: | @@ -180,6 +181,12 @@ jobs: run: | sudo apt-get update && sudo apt-get install -y --no-install-recommends libcurl4-openssl-dev pkg-config cargo install parity-publish@0.10.12 --locked -q +======= + - 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.14 --locked -q +>>>>>>> 387a7e21 ([Release|CI/CD] Add `parity-publish restore` step to simplify post crates release activity (#11652)) - name: Run parity-publish plan if: inputs.resume_from == 'full' @@ -308,6 +315,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 "Restore clean manifests after crates 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 67ab184f5324b2dcee346490f4eda787cabd1226 Mon Sep 17 00:00:00 2001 From: Egor_P Date: Wed, 8 Apr 2026 15:27:01 +0200 Subject: [PATCH 2/2] Resolve conflicts --- .github/workflows/release-80_publish-crates.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/release-80_publish-crates.yml b/.github/workflows/release-80_publish-crates.yml index 766ad2b9e8e9a..6f76599e715bd 100644 --- a/.github/workflows/release-80_publish-crates.yml +++ b/.github/workflows/release-80_publish-crates.yml @@ -162,7 +162,6 @@ jobs: fi echo "On branch $CRATES_RELEASE_BRANCH" -<<<<<<< HEAD - name: Install Rust 1.93 shell: bash run: | @@ -177,16 +176,10 @@ jobs: 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 - cargo install parity-publish@0.10.12 --locked -q -======= - 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.14 --locked -q ->>>>>>> 387a7e21 ([Release|CI/CD] Add `parity-publish restore` step to simplify post crates release activity (#11652)) - name: Run parity-publish plan if: inputs.resume_from == 'full'