Skip to content

Commit a6d758d

Browse files
authored
release: v2.0.0 — Leptos/WASM rewrite (#5)
* WIP: feat: rust version * feat: get download cv animation on loading * fix: change skills categories * feat: add cv translations * feat: adapt cv structure to complete i18n * fix: restore glassy nav effect and fix btn-secondary hover flash * fix: profile image path, mobile CV button, article page rendering * fix: CV skill categories mismatch, translations cleanup, persist language to localStorage * feat: add 4 bilingual blog articles and article content styles * feat: add veille tech watch page with GH Actions news pipeline * chore: update deps, README, add mobile nav styles and CSS imports * feat: add GitHub Pages deploy workflow for Trunk/WASM build
1 parent b83d462 commit a6d758d

101 files changed

Lines changed: 10370 additions & 5700 deletions

Some content is hidden

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

.github/workflows/deploy.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Deploy to GitHub Pages
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: true
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- name: Install Rust
24+
uses: dtolnay/rust-toolchain@stable
25+
with:
26+
targets: wasm32-unknown-unknown
27+
28+
- name: Cache Rust dependencies
29+
uses: Swatinem/rust-cache@v2
30+
31+
- name: Install Trunk
32+
uses: jetli/trunk-action@v0.5.0
33+
with:
34+
version: latest
35+
36+
- name: Build
37+
run: trunk build --release
38+
39+
- name: Upload artifact
40+
uses: actions/upload-pages-artifact@v3
41+
with:
42+
path: dist
43+
44+
deploy:
45+
needs: build
46+
runs-on: ubuntu-latest
47+
environment:
48+
name: github-pages
49+
url: ${{ steps.deployment.outputs.page_url }}
50+
steps:
51+
- name: Deploy to GitHub Pages
52+
id: deployment
53+
uses: actions/deploy-pages@v4

.github/workflows/fetch-news.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Fetch Tech News
2+
3+
on:
4+
schedule:
5+
- cron: '0 6 * * *' # daily 06:00 UTC
6+
workflow_dispatch: # manual trigger
7+
8+
jobs:
9+
fetch-news:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
14+
steps:
15+
- name: Checkout main
16+
uses: actions/checkout@v4
17+
with:
18+
ref: main
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: '3.12'
24+
cache: pip
25+
26+
- name: Install dependencies
27+
run: pip install feedparser requests
28+
29+
- name: Fetch and classify news
30+
run: python scripts/fetch_news.py
31+
32+
- name: Commit if changed
33+
run: |
34+
git config user.name "github-actions[bot]"
35+
git config user.email "github-actions[bot]@users.noreply.github.com"
36+
git add public/news.json
37+
git diff --staged --quiet && echo "No changes." || \
38+
git commit -m "chore: update tech news feed [skip ci]" && git push

.gitignore

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Rust
2+
/target/
3+
**/*.rs.bk
4+
Cargo.lock # Si c'est une library, décommenter cette ligne
5+
6+
# WebAssembly / Leptos
7+
/dist/
8+
/pkg/
9+
/.trunk/
10+
/site/
11+
12+
# Node.js (si tu utilises des outils JS/TS)
13+
node_modules/
14+
npm-debug.log*
15+
yarn-debug.log*
16+
yarn-error.log*
17+
package-lock.json
18+
yarn.lock
19+
20+
# Build artifacts
21+
*.wasm
22+
*.wasm.map
23+
24+
# Logs
25+
*.log
26+
logs/
27+
28+
# Environment files
29+
.env
30+
.env.local
31+
.env.development
32+
.env.production
33+
34+
# Editor / IDE
35+
.vscode/
36+
.idea/
37+
*.swp
38+
*.swo
39+
*~
40+
.DS_Store
41+
Thumbs.db
42+
43+
# Temporary files
44+
tmp/
45+
temp/
46+
*.tmp
47+
48+
# Coverage reports
49+
tarpaulin-report.html
50+
lcov.info
51+
52+
# Backup files
53+
*.bak
54+
*.orig
55+
56+
# OS generated files
57+
.DS_Store
58+
.DS_Store?
59+
._*
60+
.Spotlight-V100
61+
.Trashes
62+
ehthumbs.db
63+
Thumbs.db
64+
65+
# Rust-specific
66+
*.pdb
67+
*.exe
68+
69+
# WebAssembly specific
70+
*.wat
71+
*.wast
72+
73+
# Documentation
74+
/doc/
75+
target/doc/
76+
77+
# Cache
78+
.cache/

0 commit comments

Comments
 (0)