Skip to content
79 changes: 0 additions & 79 deletions .github/workflows/release-60_post-crates-release-activities.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ==="
Expand Down
27 changes: 21 additions & 6 deletions .github/workflows/release-80_publish-crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,15 +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: 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'
Expand Down Expand Up @@ -358,6 +353,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
Expand Down
Loading