mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2026-10-20 07:24:17 +00:00
Bing Webmaster Tools flags meta descriptions under roughly 90-100 characters. It counts characters, so most Chinese, Japanese and Korean pages failed even when the text read fine. - Hand-written descriptions for the key site pages in 11 languages: home, pricing, support, team, the blog index and its categories. Plus 16 docs pages whose text is too short to extend from. - scripts/fit-meta-descriptions.mjs runs after both builds (v3/build.sh, deploy.sh and the docs workflow). It brings every other description to 120-160 characters, using the page's opening sentences. - Category descriptions now resolve for the transliterated zh/ja/ko slugs. Before, those pages only ever showed the generic text. - IndexNow: the key file ships with the site from v3/public, and scripts/indexnow.mjs submits the live sitemaps. After deploying, each workflow submits its own half: the site or the docs. - Translate the bodies of the Spanish team page and the German support page, which were still in English. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
name: Deploy-web
|
|
|
|
on: [workflow_dispatch]
|
|
|
|
permissions:
|
|
contents: read
|
|
jobs:
|
|
deploy:
|
|
name: Deploy
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
persist-credentials: false
|
|
|
|
- name: Install Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 20
|
|
|
|
- name: Add SSH key to agent
|
|
run: |
|
|
mkdir -p ~/.ssh
|
|
chmod 700 ~/.ssh
|
|
echo "${{ secrets.SK }}" > ~/.ssh/id_rsa
|
|
chmod 600 ~/.ssh/id_rsa
|
|
ssh-keyscan ${{ secrets.HOST }} >> ~/.ssh/known_hosts
|
|
eval "$(ssh-agent -s)"
|
|
ssh-add ~/.ssh/id_rsa
|
|
|
|
- name: Build
|
|
run: |
|
|
cd v3
|
|
npm install
|
|
./build.sh
|
|
scp x ${{ secrets.NAME }}@${{ secrets.HOST }}:/tmp/
|
|
ssh ${{ secrets.NAME }}@${{ secrets.HOST }} "sudo tar xzf /tmp/x -C /var/www/html/v3 && /bin/rm /tmp/x && sudo chown www-data:www-data /var/www/html/v3 -R"
|
|
|
|
# Ask Bing to recrawl the site's pages now. The site is already live, so
|
|
# a failure here is reported but does not fail the deploy.
|
|
- name: IndexNow
|
|
continue-on-error: true
|
|
run: node scripts/indexnow.mjs site
|