script formatting in libraries doc #129
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: Deploy Site | |
on: | |
push: | |
branches: main | |
workflow_dispatch: | |
# allow manual execution via Actions tab | |
env: | |
# # `BASE_URL` determines the website is served from, including CSS & JS assets | |
# # You may need to change this to `BASE_URL: ''` | |
BASE_URL: /${{ github.event.repository.name }} | |
# PATH_MYST: ${{ github.workspace }}/docs/ | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: 'pages' | |
cancel-in-progress: true | |
jobs: | |
build-and-deploy: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Pages | |
uses: actions/configure-pages@v5 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: Install MyST Markdown | |
run: npm install -g mystmd | |
- name: Build HTML Assets | |
working-directory: ./docs | |
run: myst build --html | |
# run: (cd docs; myst build --html) | |
# run: | | |
# cd ./docs/ | |
# myst build --html | |
# with: | |
# path: './docs/' | |
# run: myst build --html | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: './docs/_build/html' | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |