mirror of
https://github.com/ClovertaTheTrilobita/SanYeCao-blog.git
synced 2026-07-03 15:41:26 +00:00
Merge remote-tracking branch 'origin/master' into blog-content
This commit is contained in:
commit
6d84a49d50
2 changed files with 678 additions and 833 deletions
64
.github/workflows/deploy-blog.yml
vendored
64
.github/workflows/deploy-blog.yml
vendored
|
|
@ -71,35 +71,8 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Install Playwright system dependencies
|
||||
run: npx playwright install-deps chromium
|
||||
timeout-minutes: 10
|
||||
|
||||
- name: Install Playwright Chromium headless shell
|
||||
run: |
|
||||
for attempt in 1 2 3; do
|
||||
echo "Installing Playwright Chromium headless shell: attempt ${attempt}/3"
|
||||
|
||||
if timeout 8m npx playwright install chromium --only-shell; then
|
||||
echo "Playwright browser installed successfully."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "Playwright browser installation failed or hung."
|
||||
echo "Removing incomplete browser cache before retrying..."
|
||||
rm -rf ~/.cache/ms-playwright
|
||||
|
||||
sleep 10
|
||||
done
|
||||
|
||||
echo "Playwright browser installation failed after 3 attempts."
|
||||
exit 1
|
||||
timeout-minutes: 30
|
||||
env:
|
||||
PLAYWRIGHT_DOWNLOAD_CONNECTION_TIMEOUT: "120000"
|
||||
|
||||
- name: List installed Playwright browsers
|
||||
run: npx playwright install --list
|
||||
- name: Install Playwright browsers
|
||||
run: npx playwright install chromium --with-deps
|
||||
|
||||
- name: Create .env file
|
||||
run: |
|
||||
|
|
@ -147,7 +120,7 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Checkout blog-content branch
|
||||
uses: actions/checkout@v5
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: blog-content
|
||||
|
||||
|
|
@ -160,35 +133,8 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Install Playwright system dependencies
|
||||
run: npx playwright install-deps chromium
|
||||
timeout-minutes: 10
|
||||
|
||||
- name: Install Playwright Chromium headless shell
|
||||
run: |
|
||||
for attempt in 1 2 3; do
|
||||
echo "Installing Playwright Chromium headless shell: attempt ${attempt}/3"
|
||||
|
||||
if timeout 8m npx playwright install chromium --only-shell; then
|
||||
echo "Playwright browser installed successfully."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "Playwright browser installation failed or hung."
|
||||
echo "Removing incomplete browser cache before retrying..."
|
||||
rm -rf ~/.cache/ms-playwright
|
||||
|
||||
sleep 10
|
||||
done
|
||||
|
||||
echo "Playwright browser installation failed after 3 attempts."
|
||||
exit 1
|
||||
timeout-minutes: 30
|
||||
env:
|
||||
PLAYWRIGHT_DOWNLOAD_CONNECTION_TIMEOUT: "120000"
|
||||
|
||||
- name: List installed Playwright browsers
|
||||
run: npx playwright install --list
|
||||
- name: Install Playwright browsers
|
||||
run: npx playwright install chromium --with-deps
|
||||
|
||||
- name: Create .env file
|
||||
run: |
|
||||
|
|
|
|||
1447
package-lock.json
generated
1447
package-lock.json
generated
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue