Skip to content

⬆️ Update eifinger/setup-rye action to v4.2.3 #1092

⬆️ Update eifinger/setup-rye action to v4.2.3

⬆️ Update eifinger/setup-rye action to v4.2.3 #1092

---
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.1.7
- name: πŸ— Set up Node.js
uses: actions/setup-node@v4.0.3
with:
node-version-file: "documentation/.nvmrc"
- name: πŸ— Install MyST
run: npm install -g mystmd
- name: πŸš€ Build documenation
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