Skip to content

Deploy to Pages

Deploy to Pages #17

Workflow file for this run

# SPDX-License-Identifier: MIT
name: Deploy to Pages
on:
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python 3
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install dependencies
run: |
poetry install --sync --no-interaction --all-extras --with docs
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Build
run: |
poetry run pdoc avro.main --html
mv html/avro/main.html ../../index.html
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'index.html'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4