Skip to content

Merge pull request #218 from craddm/deployment-and-minio-fixes #405

Merge pull request #218 from craddm/deployment-and-minio-fixes

Merge pull request #218 from craddm/deployment-and-minio-fixes #405

Workflow file for this run

name: Build and deploy docs
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
env:
BASE_URL: /${{ github.event.repository.name }}
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
working-directory: ./docs
run: npm ci
- name: Build docs
working-directory: ./docs
run: npm run build
- name: Upload artifact
if: github.event_name != 'pull_request'
uses: actions/upload-pages-artifact@v4
with:
path: ./docs/_build/html
name: github-pages
deploy:
needs: build
if: github.event_name != 'pull_request' && github.ref_name == 'main'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4