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 17d8572 commit 2c5adf2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/static.yml
Expand Up @@ -24,11 +24,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

# Step to mirror the Freenet website
- name: Mirror Freenet Website
# Step to mirror the Freenet website and remove script tags
- name: Mirror Freenet Website and Remove Script Tags
run: |
sudo apt-get install wget
wget --mirror --convert-links --adjust-extension --page-requisites --no-parent https://freenet.org -P freenet-website/
find freenet-website/ -name "*.html" -exec sed -i '/<script/,/<\/script>/d' {} \;
mv freenet-website/freenet.org/* freenet-website/
mv freenet-website/freenet.org/.* freenet-website/ || true
rmdir freenet-website/freenet.org
Expand Down

0 comments on commit 2c5adf2

Please sign in to comment.