commit f4266d3b6562211e69b698a068d9df5dd8703ef6 Author: Chuanqi Sun Date: Sun Apr 11 13:31:55 2021 -0700 setup initial content diff --git a/.github/workflows/daily-update.yaml b/.github/workflows/daily-update.yaml new file mode 100644 index 0000000..8d75f87 --- /dev/null +++ b/.github/workflows/daily-update.yaml @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fc1666b --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +public +node_modules \ No newline at end of file diff --git a/osmosfeed.yaml b/osmosfeed.yaml new file mode 100644 index 0000000..1fe0148 --- /dev/null +++ b/osmosfeed.yaml @@ -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/