From f4266d3b6562211e69b698a068d9df5dd8703ef6 Mon Sep 17 00:00:00 2001 From: Chuanqi Sun Date: Sun, 11 Apr 2021 13:31:55 -0700 Subject: [PATCH] setup initial content --- .github/workflows/daily-update.yaml | 22 ++++++++++++++++++++++ .gitignore | 2 ++ osmosfeed.yaml | 5 +++++ 3 files changed, 29 insertions(+) create mode 100644 .github/workflows/daily-update.yaml create mode 100644 .gitignore create mode 100644 osmosfeed.yaml 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/