Backup Website #408
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: Backup Website | |
on: | |
schedule: | |
- cron: "0 7 * * *" # runs at 15:00 Beijing time | |
jobs: | |
backup: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Backup website | |
run: | | |
curl -o 8530.html http://faculty.bjtu.edu.cn/8530/ | |
# replace example.com with the URL you want to backup | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: website-backup | |
path: 8530.html |