Skip to content

accessibility

accessibility #69

Workflow file for this run

name: Test & Deploy
on: [push]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: curl -fsSL https://d2lang.com/install.sh | sh -s --
- name: Build docs
working-directory: ./docs
run: |
pip install ../
pip install -r requirements.txt
mkdocs build
deploy:
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/master'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: curl -fsSL https://d2lang.com/install.sh | sh -s --
- name: Build docs
working-directory: ./docs
run: |
pip install ../
pip install -r requirements.txt
mkdocs build
- uses: actions/upload-pages-artifact@v1
with:
path: "docs/site"
- id: deployment
uses: actions/deploy-pages@v1