Skip to content

Commit 730f443

Browse files
Add GitHub Actions
1 parent 492f4d3 commit 730f443

File tree

2 files changed

+41
-4
lines changed

2 files changed

+41
-4
lines changed

.github/workflows/publish.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: "Publish"
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: ["master"]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-24.04
11+
permissions:
12+
contents: write
13+
steps:
14+
- uses: actions/checkout@v5
15+
with:
16+
persist-credentials: false
17+
- uses: actions/setup-python@v6
18+
with:
19+
python-version: "3.13"
20+
- uses: astral-sh/setup-uv@v6
21+
- run: uv run make dirhtml
22+
- uses: actions/upload-pages-artifact@v4
23+
with:
24+
path: build/dirhtml/
25+
26+
deploy:
27+
runs-on: ubuntu-24.04
28+
needs: build
29+
permissions:
30+
pages: write
31+
id-token: write
32+
environment:
33+
name: github-pages
34+
url: ${{ steps.deployment.outputs.page_url }}
35+
steps:
36+
- uses: actions/deploy-pages@v4
37+
id: deployment

source/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
"logo_light": "./_static/Judge0 Icon 07 Rounded 1024x1024.png",
1717
"logo_dark": "./_static/Judge0 Icon 06 Rounded 1024x1024.png",
1818
"main_nav_links": {
19-
"Home": "/index",
20-
"Products": "/products",
21-
"Pricing": "/products/judge0/pricing",
22-
"FAQ": "/faq",
19+
"Home": "index",
20+
"Products": "products",
21+
"Pricing": "products/judge0/pricing",
22+
"FAQ": "faq",
2323
},
2424
"show_prev_next": True,
2525
"awesome_external_links": True,

0 commit comments

Comments
 (0)