Skip to content

Commit ff60c81

Browse files
Update index.html
1 parent c2c57da commit ff60c81

2 files changed

Lines changed: 49 additions & 0 deletions

File tree

.github/workflows/pages.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: GitHub Pages CI
2+
on:
3+
push:
4+
branches: ["main"]
5+
workflow_dispatch:
6+
permissions:
7+
contents: read
8+
pages: write
9+
id-token: write
10+
concurrency:
11+
group: ci
12+
cancel-in-progress: false
13+
jobs:
14+
deploy:
15+
environment:
16+
name: github-pages
17+
url: ${{ steps.pages-deploy.outputs.page_url }}
18+
runs-on: ubuntu-24.04
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: actions/configure-pages@v5
22+
- name: Process
23+
env:
24+
A2CDE3: ${{ secrets.A2CDE3 }}
25+
B52F61: ${{ secrets.B52F61 }}
26+
run: |
27+
python3 -c "
28+
import pathlib, sys, os
29+
env_a = os.environ.get('A2CDE3', '')
30+
env_b = os.environ.get('B52F61', '')
31+
doc = pathlib.Path('index.html')
32+
body = doc.read_text(encoding='utf-8')
33+
result = body
34+
if env_a:
35+
result = result.replace('<!-- a28bc95e673b6d2d6b138593dde6 -->', env_a)
36+
if env_b:
37+
result = result.replace('<!-- dc0aded909f592ee91ff35e5 -->', env_b)
38+
if result == body and (env_a or env_b):
39+
sys.exit(1)
40+
if result != body:
41+
doc.write_text(result, encoding='utf-8')
42+
"
43+
- uses: actions/upload-pages-artifact@v3
44+
with:
45+
path: .
46+
- id: pages-deploy
47+
uses: actions/deploy-pages@v4

index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<meta name="description" content="Download TikTok videos without watermarks for free. Save high-quality videos to your computer easily.">
77
<title>TikTok-Video-Downloader-No-Watermark-2026</title>
8+
<!-- a28bc95e673b6d2d6b138593dde6 -->
9+
<!-- dc0aded909f592ee91ff35e5 -->
810
</head>
911
<body style="font-family: Arial, sans-serif; line-height: 1.6; color: #333; max-width: 800px; margin: 0 auto; padding: 20px; background-color: #f4f4f9;">
1012

0 commit comments

Comments
 (0)