Skip to content

Commit 32305bf

Browse files
committed
Remove public_suffix_list.dat and move website files to public/
Download the public_suffix_list.dat file from the web before deploying the site to GitHub Pages.
1 parent ca2e5ad commit 32305bf

File tree

9 files changed

+16
-15986
lines changed

9 files changed

+16
-15986
lines changed

.github/workflows/pages.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,26 @@ jobs:
2929
url: ${{ steps.deployment.outputs.page_url }}
3030
runs-on: ubuntu-latest
3131
steps:
32-
- name: Checkout
33-
uses: actions/checkout@v4
32+
- uses: actions/checkout@v4
33+
34+
- name: Download Public Suffix List
35+
run: |
36+
urls=(
37+
"https://upa-url.github.io/demo/public_suffix_list.dat"
38+
"https://publicsuffix.org/list/public_suffix_list.dat"
39+
)
40+
for u in "${urls[@]}"; do
41+
if curl -fsS -o public/demo/public_suffix_list.dat "$u"; then
42+
break
43+
fi
44+
done
45+
3446
- name: Setup Pages
3547
uses: actions/configure-pages@v5
3648
- name: Upload artifact
3749
uses: actions/upload-pages-artifact@v3
3850
with:
39-
# Upload entire repository
40-
path: '.'
51+
path: ./public
4152
- name: Deploy to GitHub Pages
4253
id: deployment
4354
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
public_suffix_list.dat

0 commit comments

Comments
 (0)