Skip to content

Commit 20ccf3e

Browse files
committed
refactor: streamline production workflow commands for clarity
- Consolidated multiple run commands into single block executions for installing dependencies and purging CDN cache, enhancing readability and maintainability of the workflow script.
1 parent 720f4c2 commit 20ccf3e

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/production.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,9 @@ jobs:
7171
echo "build_date=$(date)" >> $GITHUB_OUTPUT
7272
7373
- name: Install deps
74-
run: yarn
75-
76-
- name: Check disk usage
77-
run: df -h
74+
run: |
75+
yarn
76+
df -h
7877
7978
- name: Calc gatsby cache key
8079
id: calc-cache-key
@@ -206,7 +205,9 @@ jobs:
206205
architecture: "x64"
207206

208207
- name: Install Tencent Cloud CLI
209-
run: pipx install tccli
208+
run: |
209+
pipx install tccli
210210
211211
- name: Purge production CDN cache
212-
run: tccli cdn PurgePathCache --Paths '["https://docs.pingcap.com/"]' --FlushType flush
212+
run: |
213+
tccli cdn PurgePathCache --Paths '["https://docs.pingcap.com/"]' --FlushType flush

0 commit comments

Comments
 (0)