π Updates maintenance/license year to 2025 (#915) #1190
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: Documentation | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: β€΅οΈ Check out code from GitHub | |
uses: actions/checkout@v4.2.2 | |
- name: π Set up Node.js | |
uses: actions/setup-node@v4.2.0 | |
with: | |
node-version-file: "documentation/.nvmrc" | |
- name: π Install MyST | |
run: npm install -g mystmd | |
- name: π Build documentation | |
working-directory: ./documentation | |
run: myst build --html | |
- name: Β©οΈ Public folder | |
run: cp ./documentation/public/* ./documentation/_build/html/ | |
- name: π Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ./documentation/_build/html | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
needs: build | |
if: github.ref == 'refs/heads/main' | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: π Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4.0.5 |