Use micromamba with conda/bioconda for all dependencies #15
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
| name: pkgdown.yaml | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| release: | |
| types: [published] | |
| workflow_dispatch: | |
| permissions: read-all | |
| jobs: | |
| pkgdown: | |
| runs-on: ubuntu-latest | |
| concurrency: | |
| group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }} | |
| env: | |
| GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install micromamba | |
| uses: mamba-org/setup-micromamba@v2 | |
| with: | |
| environment-file: environment.yml | |
| init-shell: bash | |
| shell-startup: false | |
| isolate: false | |
| - name: Build pkgdown site | |
| run: | | |
| micromamba run -n fastqdesign Rscript -e 'pkgdown::build_site()' | |
| - name: Deploy to GitHub pages | |
| if: github.event_name != 'pull_request' | |
| uses: JamesIves/github-pages-deploy-action@v4.5.0 | |
| with: | |
| clean: false | |
| branch: gh-pages | |
| folder: docs |