Skip to content

Commit e53c31a

Browse files
committed
Refactored ci script
1 parent 71151f4 commit e53c31a

2 files changed

Lines changed: 23 additions & 38 deletions

File tree

.github/workflows/build-and-deploy.yml

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
- ".github/workflows/**"
1111
workflow_dispatch:
1212

13+
concurrency:
14+
group: pages-${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
1317
permissions:
1418
contents: read
1519
pages: write
@@ -20,22 +24,32 @@ env:
2024

2125
jobs:
2226
check-animations:
23-
uses: ./.github/workflows/check-animations.yml
24-
25-
build:
2627
runs-on: ubuntu-latest
27-
needs: check-animations
28+
2829
steps:
29-
- name: Checkout repository
30+
- &checkout_step
31+
name: Checkout repository
3032
uses: actions/checkout@v5
31-
32-
- name: Set up Python
33+
- &setup_python_step
34+
name: Set up Python
3335
uses: actions/setup-python@v6
3436
with:
3537
python-version: "3.13"
36-
37-
- name: Install dependencies
38+
cache: pip
39+
cache-dependency-path: ./scripts/requirements.txt
40+
- &install_dependencies_step
41+
name: Install dependencies
3842
run: pip install -r ./scripts/requirements.txt
43+
- name: Run animations check
44+
run: python3 ./scripts/check_animations.py
45+
46+
build:
47+
runs-on: ubuntu-latest
48+
needs: check-animations
49+
steps:
50+
- *checkout_step
51+
- *setup_python_step
52+
- *install_dependencies_step
3953

4054
- name: Build website
4155
run: python3 ./scripts/build_website.py --destination ${{ env.SITE_DIR }} --randomize --seed 875492

.github/workflows/check-animations.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)