Add requested statistical data term #287
Workflow file for this run
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 publish docs to GH Pages | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'modules/**' | |
- 'docs/**' | |
- '.github/workflows/publish-docs.yml' | |
pull_request: | |
branches: | |
- main | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- closed | |
paths: | |
- 'modules/**' | |
- 'docs/**' | |
- '.github/workflows/publish-docs.yml' | |
jobs: | |
build-and-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Build using docker | |
if: github.event.action != 'closed' | |
run: | | |
docker run -v $(pwd):/app ghcr.io/nf-osi/data-model-docs | |
- name: Deploy preview for PRs | |
if: github.event_name == 'pull_request' | |
id: preview-deployment | |
uses: rossjrw/pr-preview-action@v1 | |
with: | |
source-dir: ./docs | |
- name: Deploy 🚀 | |
if: github.event_name != 'pull_request' | |
id: prod-deployment | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
folder: docs |