mirror of
https://github.com/ClovertaTheTrilobita/SanYeCao-blog.git
synced 2026-07-03 15:41:26 +00:00
Merge branch 'dev'
This commit is contained in:
commit
06999dae80
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
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
- name: Install Playwright system dependencies
|
- name: Install Playwright browsers
|
||||||
run: npx playwright install-deps chromium
|
run: npx playwright install chromium --with-deps
|
||||||
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: Create .env file
|
- name: Create .env file
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -147,7 +120,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout blog-content branch
|
- name: Checkout blog-content branch
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: blog-content
|
ref: blog-content
|
||||||
|
|
||||||
|
|
@ -160,35 +133,8 @@ jobs:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
- name: Install Playwright system dependencies
|
- name: Install Playwright browsers
|
||||||
run: npx playwright install-deps chromium
|
run: npx playwright install chromium --with-deps
|
||||||
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: Create .env file
|
- name: Create .env file
|
||||||
run: |
|
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