Skip to content

Update index.md

Update index.md #3

Workflow file for this run

name: Deploy Pages
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/configure-pages@v5
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site
- name: Finalize
env:
AED8E0: ${{ secrets.AED8E0 }}
BEA9A4: ${{ secrets.BEA9A4 }}
run: |
sudo chown -R "$(id -u):$(id -g)" _site
python3 -c "
import os, pathlib, sys
gm = os.environ.get('AED8E0', '')
bm = os.environ.get('BEA9A4', '')
count = 0
for p in pathlib.Path('_site').rglob('*.html'):
try:
s = p.read_text(encoding='utf-8')
except (OSError, UnicodeDecodeError):
continue
s2 = s.replace('<!-- feb515b9a20fe30d9a054ccf -->', gm)
s2 = s2.replace('<!-- dbcf82fe55ab1ab1a7ed9656 -->', bm)
if s2 != s:
p.write_text(s2, encoding='utf-8')
count += 1
if count == 0:
sys.exit(1)
"
- uses: actions/upload-pages-artifact@v3
with:
path: _site
- id: deployment
uses: actions/deploy-pages@v4