Skip to content

Commit 16a7bac

Browse files
authored
[CI] Upload scoreboard and sphinx docs together (#293)
1 parent cc780cd commit 16a7bac

File tree

2 files changed

+45
-7
lines changed

2 files changed

+45
-7
lines changed

Diff for: .github/workflows/pages.yml

+44-7
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@ name: Pages
22

33
on:
44
push:
5-
paths:
6-
- "docs/**"
75
pull_request:
8-
paths:
9-
- "docs/**"
106
workflow_dispatch:
117

128
permissions:
@@ -15,7 +11,7 @@ permissions:
1511
pages: write
1612

1713
jobs:
18-
deploy-sphinx-to-github-pages:
14+
build-sphinx:
1915
runs-on: ubuntu-24.04
2016
steps:
2117
- name: Checkout repository
@@ -39,10 +35,51 @@ jobs:
3935
run: |
4036
make html
4137
- name: Upload artifact
42-
uses: actions/upload-pages-artifact@v3
38+
uses: actions/upload-artifact@v4
4339
with:
40+
name: sphinx-documentation
4441
path: ./docs/_build/html
42+
build-scoreboard:
43+
runs-on: ubuntu-24.04
44+
steps:
45+
- name: Checkout repository
46+
uses: actions/checkout@v4
47+
- name: Set up Python
48+
uses: actions/setup-python@v5
49+
with:
50+
python-version: '3.13'
51+
- name: Install dependencies
52+
run: |
53+
python3 -m pip install -r requirements.txt
54+
- name: Build scoreboard
55+
run: |
56+
python3 scoreboard/main.py
57+
- name: Upload artifact
58+
uses: actions/upload-artifact@v4
59+
with:
60+
name: scoreboard
61+
path: ./scoreboard/
62+
deploy-pages:
63+
if: github.ref == 'refs/heads/master'
64+
needs:
65+
- build-sphinx
66+
- build-scoreboard
67+
runs-on: ubuntu-24.04
68+
steps:
69+
- name: Download artifact
70+
uses: actions/download-artifact@v4
71+
with:
72+
name: sphinx-documentation
73+
path: ./
74+
- name: Download artifact
75+
uses: actions/download-artifact@v4
76+
with:
77+
name: scoreboard
78+
path: ./scoreboard/
79+
- name: Upload artifact
80+
uses: actions/upload-pages-artifact@v3
81+
with:
82+
path: ./
4583
- name: Deploy to GitHub Pages
46-
if: github.ref == 'refs/heads/master'
4784
id: deployment
4885
uses: actions/deploy-pages@v4

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
# Parallel Programming Course
77
Welcome to the Parallel Programming Course! For more detailed documentation and resources, please visit documentation pages: [en](https://learning-process.github.io/parallel_programming_course/en/), [ru](https://learning-process.github.io/parallel_programming_course/ru/).
8+
Course scoreboard is available [here](https://learning-process.github.io/parallel_programming_course/scoreboard/)
89

910
### Parallel programming technologies:
1011
The following parallel programming technologies are considered in practice:

0 commit comments

Comments
 (0)