Initial commit for course #1
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: Render and publish | |
| on: | |
| workflow_dispatch: | |
| push: | |
| # only for .qmd file and .yml files | |
| paths: | |
| - '**.qmd' | |
| - '**.yml' | |
| - ' _freeze/**' | |
| branches: | |
| - master | |
| - deepak | |
| # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
| permissions: | |
| contents: write | |
| pages: write | |
| id-token: write | |
| jobs: | |
| publish-site: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: sibswiss/training-singlecell-rstudio:latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Build site | |
| run: | | |
| quarto render | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v4 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: '_site/' | |
| - name: Deploy | |
| uses: peaceiris/actions-gh-pages@v3 | |
| if: github.ref == 'refs/heads/master' | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_branch: gh-pages | |
| publish_dir: ./_site |