Skip to content

Instantly share code, notes, and snippets.

@renbaoshuo
Created November 12, 2021 11:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save renbaoshuo/afda51a5767cabae1eb3b9222b5ff7d5 to your computer and use it in GitHub Desktop.
Save renbaoshuo/afda51a5767cabae1eb3b9222b5ff7d5 to your computer and use it in GitHub Desktop.
Archive Site with Wayback Machine
name: Archive Site with Wayback Machine
on:
schedule:
- cron: '0 0 * * 1'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install wayback-machine-archiver
run: python -m pip install wayback-machine-archiver
- name: Archive Site
run: archiver --sitemaps https://blog.baoshuo.ren/sitemap.xml --archive-sitemap-also --log DEBUG --rate-limit-wait 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment