Skip to content

Commit 2729c55

Browse files
committed
Suppression de fichiers obsolètes et ajout d'un nouveau modèle HTML pour le contenu aléatoire
1 parent a3d3548 commit 2729c55

File tree

57 files changed

+265
-168
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+265
-168
lines changed

.github/workflows/build.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: write
8+
9+
10+
jobs:
11+
run-scrape:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: '3.10'
22+
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip pipenv
26+
pipenv install
27+
28+
- name: Run build script
29+
run: |
30+
pipenv run python scripts/build.py
31+
32+
- name: Commit and push changes
33+
run: |
34+
git config --global user.name "github-actions[bot]"
35+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
36+
git add .
37+
git commit -m "Add scrape results [skip ci]"
38+
git push --force origin HEAD:${{ github.ref }}

.github/workflows/scrape.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
name: Run Scrape Script
1+
name: Scrape
22

33
on:
44
workflow_dispatch:
55

66
permissions:
77
contents: write
88

9-
109
jobs:
1110
run-scrape:
1211
runs-on: ubuntu-latest
@@ -27,11 +26,7 @@ jobs:
2726
2827
- name: Run scrape script
2928
run: |
30-
pipenv run python src/scrape.py "${{ secrets.SCRAPED_URLS }}" --output-dir=./docs/
31-
32-
- name: Run build script
33-
run: |
34-
pipenv run python src/build.py
29+
pipenv run python scripts/scrape.py "${{ secrets.SCRAPED_URLS }}"
3530
3631
- name: Commit and push changes
3732
run: |

docs/images/2023-05-30-23.42.51.jpeg

2.31 MB
-151 KB
Binary file not shown.

docs/images/2023-05-30-23.47.06.jpeg

2.72 MB
-194 KB
Binary file not shown.

docs/images/2023-06-01-08.49.10.jpeg

2.19 MB
-142 KB
Binary file not shown.

docs/images/2023-06-03-10.56.11.jpeg

2.73 MB
-219 KB
Binary file not shown.

0 commit comments

Comments
 (0)