Skip to content

DX: workflows including MyST NB and precommit added #9

DX: workflows including MyST NB and precommit added

DX: workflows including MyST NB and precommit added #9

Workflow file for this run

name: MyST GitHub Pages Deploy
on:
pull_request:
branches: [main]
push:
# Runs on pushes targeting the default branch
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
with:
enablement: "true"
- uses: prefix-dev/[email protected]
with:
path: ./_build/html
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
if: >-
github.event_name == 'push' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
needs: build
permissions:
pages: write
id-token: write
runs-on: ubuntu-latest
steps:
- id: deployment
uses: actions/deploy-pages@v4