Skip to content

Commit

Permalink
Update static.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Jan 26, 2024
1 parent 01d4b68 commit 03a8560
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/static.yml
Expand Up @@ -24,11 +24,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

# Step to mirror the Freenet website and remove script tags
- name: Mirror Freenet Website and Remove Script Tags
# Step to mirror the Freenet website, remove script tags, and include external images
- name: Mirror Freenet Website
run: |
sudo apt-get install wget perl
wget --mirror --convert-links --adjust-extension --page-requisites --no-parent https://freenet.org -P freenet-website/
wget --mirror --convert-links --adjust-extension --page-requisites --span-hosts --domains=freenet.org,private-user-images.githubusercontent.com --no-parent https://freenet.org -P freenet-website/
find freenet-website/ -name "*.html" -exec perl -i -0pe 's/<script.*?<\/script>//gs' {} \;
mv freenet-website/freenet.org/* freenet-website/
mv freenet-website/freenet.org/.* freenet-website/ || true
Expand Down

0 comments on commit 03a8560

Please sign in to comment.