β¬οΈ Update eifinger/setup-rye action to v4.2.3 #1092
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.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 |