Skip to content

Update Platform.yaml (#552) #262

Update Platform.yaml (#552)

Update Platform.yaml (#552) #262

Workflow file for this run

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