Create archive.yml
This commit is contained in:
parent
09e48bd328
commit
5f1cef0376
|
@ -0,0 +1,24 @@
|
|||
name: Archive website
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
schedule:
|
||||
- cron: "0 0 * * *"
|
||||
|
||||
jobs:
|
||||
archive:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.8
|
||||
|
||||
- name: Install dependencies
|
||||
run: python -m pip install wayback-machine-archiver
|
||||
|
||||
- name: Archive Website
|
||||
run: archiver --sitemaps https://piracy.now.sh/sitemap.xml --log=INFO
|
Reference in New Issue