Skip to content

QPE using MLP

QPE using MLP #17

Workflow file for this run

# This file was created automatically with `myst init --gh-pages` 🪄 💚
name: MyST GitHub Pages Deploy
on:
push:
# Runs on pushes targeting the default branch for deployment
branches: [main]
pull_request:
# Runs on pull requests for building/testing only
branches: [main]
env:
# `BASE_URL` determines the website is served from, including CSS & JS assets
# This should be dynamic based on whether it's a PR or a push to main
# For pushes to main, use the repository name for GitHub Pages URL structure
BASE_URL: ${{ github.event_name == 'push' && '/' || '' }}${{ github.event.repository.name }}
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
# Only grant pages write permission for pushes (deployments)
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: 'pages'
cancel-in-progress: false
jobs:
build:
# This job runs for both push and pull_request events
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Install MyST Markdown
run: npm install -g mystmd
- name: Build HTML Assets
run: myst build --html
- name: Upload artifact (for PR/build inspection)
uses: actions/upload-artifact@v4
with:
name: myst-html-artifact
path: './_build/html'
deploy:
# This job only runs on push events to the 'main' branch
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build # Depends on the build job completing successfully
steps:
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Download artifact (from the build job)
uses: actions/download-artifact@v4
with:
name: myst-html-artifact
path: './_build/html'
- name: Upload artifact (for GitHub Pages deployment)
uses: actions/upload-pages-artifact@v3
with:
path: './_build/html'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4