Skip to content

Commit 0d36237

Browse files
committed
Add workflow to build stats
1 parent cdafa29 commit 0d36237

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/stats.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Update README cards
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
schedule:
7+
- cron: "0 0 * * *"
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Generate stats card
17+
uses: readme-tools/github-readme-stats-action@v1
18+
with:
19+
card: stats
20+
options: username=${{ github.repository_owner }}&include_orgs=true&show_icons=true&theme=transparent&locale=en
21+
path: profile/stats.svg
22+
token: ${{ secrets.GITHUB_TOKEN }}
23+
24+
- name: Generate top languages card
25+
uses: readme-tools/github-readme-stats-action@v1
26+
with:
27+
card: top-langs
28+
options: username=${{ github.repository_owner }}&include_orgs=true&show_icons=true&theme=transparent&locale=en&exclude_repo=lixie
29+
path: profile/top-langs.svg
30+
token: ${{ secrets.GITHUB_TOKEN }}
31+
32+
- name: Move images
33+
run: |
34+
mkdir -p ./_site
35+
mv profile/*.svg ./_site/
36+
37+
- name: Deploy to GitHub Pages
38+
id: deployment
39+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)