DX: workflows including MyST NB and precommit added #15
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: 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 |