Skip to content

Pref. 在权威链接索引方面提供cleanURL #117

Pref. 在权威链接索引方面提供cleanURL

Pref. 在权威链接索引方面提供cleanURL #117

Workflow file for this run

name: 'RTheme Build'
on:
push:
paths:
- '**'
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: 'Setup Git'
run: |
git init
git pull
git config --local user.email "[email protected]"
git config --local user.name "Ravello-H"
- name: 'Setup nodejs'
uses: actions/setup-node@v3
with:
node-version: 'latest'
- name: 'Install requirements'
run: |
npm install
- name: 'RenderBuild'
run: |
node program/build.js
- name: 'RPageSearch'
continue-on-error: True
run: |
node program/search.js
git add -A
- name: 'local-feed-generation'
continue-on-error: True
run: |
node program/feed.js
git add -A
- name: 'local-sitemap-generation'
continue-on-error: True
run: |
node program/fileList.js
npx sitemap < ./public/assets/data/urlList.txt > ./public/sitemap.xml
git add -A
- name: 'Commit files'
continue-on-error: True
run: |
git diff
git status
git commit -m "[RTheme-Build]`date '+%Y-%m-%d %H:%M:%S'`" || exit
git push -f || exit