setup initial content

This commit is contained in:
Chuanqi Sun 2021-04-11 13:31:55 -07:00
commit f4266d3b65
3 changed files with 29 additions and 0 deletions

22
.github/workflows/daily-update.yaml vendored Normal file
View file

@ -0,0 +1,22 @@
name: Build site on scheulde or master update
on:
push:
branches:
- master
schedule:
# just after Mid-night
- cron: "5 8 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Build the feed
run: npx @osmoscraft/osmosfeed
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
public
node_modules

5
osmosfeed.yaml Normal file
View file

@ -0,0 +1,5 @@
# cacheUrl: https://REPLACE_THIS_WITH_YOUR_HOSTNAME/cache.json
sources:
- href: https://css-tricks.com/feed/
- href: https://www.smashingmagazine.com/feed/
- href: https://www.freecodecamp.org/news/rss/