Skip to content

Commit 30d567c

Browse files
authored
Create pages.yml
1 parent fa5bc06 commit 30d567c

1 file changed

Lines changed: 56 additions & 0 deletions

File tree

.github/workflows/pages.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: build pages
4+
5+
# Controls when the workflow will run
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the "main" branch
8+
push:
9+
branches: [ "main" ]
10+
11+
# Allows you to run this workflow manually from the Actions tab
12+
workflow_dispatch:
13+
14+
permissions:
15+
contents: read
16+
pages: write
17+
id-token: write
18+
19+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
20+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
21+
concurrency:
22+
group: "pages"
23+
cancel-in-progress: false
24+
25+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
26+
jobs:
27+
# This workflow contains a single job called "build"
28+
build:
29+
# The type of runner that the job will run on
30+
runs-on: ubuntu-latest
31+
32+
# Steps represent a sequence of tasks that will be executed as part of the job
33+
steps:
34+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
35+
- uses: actions/checkout@v4
36+
37+
- name: Install uv
38+
uses: astral-sh/setup-uv@v6
39+
40+
- name: Install dependencies
41+
run: uv sync
42+
43+
- name: Run MkDocs
44+
run: uv run mkdocs build
45+
46+
- name: Setup Pages
47+
uses: actions/configure-pages@v3
48+
49+
- name: Upload artifact
50+
uses: actions/upload-pages-artifact@v2
51+
with:
52+
path: 'site'
53+
54+
- name: Deploy to GitHub Pages
55+
id: deployment
56+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)