.github/workflows/reader.yml #302
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
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: '13 12 * * 0' # https://crontab.guru/#13_12_*_*_0 -> At 12:13 on Sunday | |
jobs: | |
gh-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: install Nim | |
uses: iffy/install-nim@v3 | |
- name: install dependencies | |
run: nimble install -y nimib puppy rss | |
- name: gather feeds and create reader page | |
run: nim r -d:release index --nbFilename:docs/index.html | |
- name: publish | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: docs |