Skip to content

build(deps): bump @astrojs/react from 3.6.3 to 4.2.1 #858

build(deps): bump @astrojs/react from 3.6.3 to 4.2.1

build(deps): bump @astrojs/react from 3.6.3 to 4.2.1 #858

Workflow file for this run

on:
push:
branches:
- 'master'
pull_request:
branches:
- 'master'
jobs:
build:
name: Build web pages
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: npm
- name: Cache WebP Images
id: cache-webp
uses: actions/cache@v4
with:
path: img_cache
key: img_cache
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install build-essential git gzip brotli zstd parallel rsync imagemagick libvips-dev python3
- run: npm install
- run: npm run build
- run: npm run build-webp
- name: Setup SSH key
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
run: |
mkdir -p $HOME/.ssh
echo "${{ secrets.DEPLOY_KEY }}" > $HOME/.ssh/id_ed25519
echo "StrictHostKeyChecking no" > $HOME/.ssh/config
chmod -R 500 $HOME/.ssh
- name: Rsync files over SSH
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
run: |
sudo apt-get install -y rsync
rsync -avzr --delete-after -e "ssh -p2222" dist/ ci@rsync-ci.xuyh0120.win:/www/lantian.pub/
- name: Upload files
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/