Created
November 12, 2021 11:42
-
-
Save renbaoshuo/afda51a5767cabae1eb3b9222b5ff7d5 to your computer and use it in GitHub Desktop.
Archive Site with Wayback Machine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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