Skip to content

Commit 792eb5d

Browse files
committed
update makefile
1 parent 5357550 commit 792eb5d

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/deploy_website.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ jobs:
4444
python -m pip install --upgrade pip
4545
python -m pip install crowdin-api-client pygithub
4646
47-
- name: Update dashboard
48-
run: |
49-
python /scripts/update_dashboard.py
50-
5147
- name: Build with Hugo
5248
run: |
5349
git submodule update --init --recursive # fetch theme

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ themes: themes/scientific-python-hugo-theme
2323

2424
html: ## Build site in `./public`
2525
html: themes content/shortcodes.md
26+
python scripts/update_dashboard.py
2627
hugo
2728

2829
serve: ## Serve site, typically on http://localhost:1313

scripts/update_dashboard.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,11 @@ def main() -> None:
158158
translators = client.get_project_translators(
159159
crowdin_project,
160160
)
161+
except Exception as e:
162+
print(f"Error: {e}")
163+
traceback.print_exc()
164+
return
165+
161166

162167
if __name__ == "__main__":
163-
main()
168+
main()

0 commit comments

Comments
 (0)