Allow manual execution of Docker image build GHA #30
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
name: Build and deploy site | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "README.md" | |
- "LICENCE.md" | |
- "env/" | |
- "pages/tools-for-reproducible-research.md" | |
- "tutorials/" | |
concurrency: | |
group: pages | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: ghcr.io/nbisweden/workshop-reproducible-research/build-website | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build website with Quarto | |
uses: quarto-dev/quarto-actions/render@v2 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: 'docs/' | |
deploy: | |
runs-on: ubuntu-latest | |
needs: build | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
permissions: | |
pages: write | |
id-token: write | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |