Skip to content

Commit 27824a1

Browse files
eirenik0claude
andauthored
Publish EyesLibrary docs to GitHub Pages (#3)
* Publish EyesLibrary docs to GitHub Pages * Bump robotframework and seleniumlibrary to latest --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 9ddc54a commit 27824a1

3 files changed

Lines changed: 59 additions & 4 deletions

File tree

.github/workflows/docs.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Build and publish docs
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Check out project
22+
uses: actions/checkout@v4
23+
24+
- name: Set up Python
25+
uses: actions/setup-python@v5
26+
with:
27+
python-version: '3.x'
28+
29+
- name: Install dependencies
30+
run: pip install -r requirements.txt
31+
32+
- name: Generate EyesLibrary docs
33+
run: |
34+
mkdir -p _site
35+
python -m robot.libdoc EyesLibrary _site/index.html
36+
37+
- name: Upload Pages artifact
38+
uses: actions/upload-pages-artifact@v3
39+
with:
40+
path: _site
41+
42+
deploy:
43+
needs: build
44+
runs-on: ubuntu-latest
45+
environment:
46+
name: github-pages
47+
url: ${{ steps.deployment.outputs.page_url }}
48+
steps:
49+
- name: Deploy to GitHub Pages
50+
id: deployment
51+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,7 @@ dmypy.json
132132
log.html
133133
output.xml
134134
report.html
135+
136+
# Generated docs site
137+
_site/
138+
.docs-venv/

requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
eyes-robotframework==5.12.0
2-
robotframework==6.1
3-
robotframework-seleniumlibrary==6.1.0
4-
selenium==4.9.1
1+
eyes-robotframework==6.4.41
2+
robotframework==7.4.2
3+
robotframework-seleniumlibrary==6.9.0
4+
selenium==4.44.0

0 commit comments

Comments
 (0)