try pkg.edit.fun #62
Workflow file for this run
This file contains hidden or 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 | |
| pull_request: | |
| branches: | |
| - main | |
| name: Build docs | |
| jobs: | |
| litedown: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup | |
| uses: eddelbuettel/github-actions/r-ci@master | |
| - name: Dependencies | |
| run: ./run.sh install_all | |
| - name: install package and build site | |
| run: | | |
| git submodule update --init --recursive | |
| Rscript -e 'install.packages("remotes")' | |
| Rscript -e 'remotes::install_github("tdhock/atime@poncatime")' | |
| R CMD build . | |
| R CMD INSTALL *.tar.gz | |
| R -e 'litedown::fuse_site("site")' | |
| shell: bash | |
| - name: netlify deploy | |
| uses: animint/animint-actions/netlify-litedown@main | |
| with: | |
| netlify_auth_token: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
| netlify_site_id: ${{ secrets.NETLIFY_SITE_ID }} | |
| path: site | |
| pr_comment_token: ${{ secrets.GITHUB_TOKEN }} |