add workflow that runs tests once a month (#56) #52
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 | |
jobs: | |
gh-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: pip install scipy numpy | |
- name: "install_nim" | |
id: install_nim | |
uses: iffy/install-nim@v3 | |
- name: install dependencies | |
run: nimble install -y | |
- name: Compile Book | |
run: nim c getting_started.nim | |
- name: Init Book | |
run: ./getting_started init | |
- name: Build Book | |
run: ./getting_started build | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: docs |