Skip to content

Improve how default icon_links are added #95

Improve how default icon_links are added

Improve how default icon_links are added #95

Workflow file for this run

name: Docs
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
pull_request:
paths:
- "docs/**"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup pixi
uses: prefix-dev/setup-pixi@28eb668aafebd9dede9d97c4ba1cd9989a4d0004 # v0.9.2
with:
environments: docs
- name: Build Documentation
run: pixi run --environment docs docs-build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'docs/_build/dirhtml'
pages:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
needs: [docs]
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
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