Skip to content

Commit 3b8faad

Browse files
ci: ダウンロード履歴チャートを追加 (#172)
Co-authored-by: kasumi <kasumi-oboroge@users.noreply.github.com>
1 parent 7c69c81 commit 3b8faad

3 files changed

Lines changed: 51 additions & 0 deletions

File tree

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Download History
2+
3+
on:
4+
schedule:
5+
- cron: "0 3 * * *"
6+
workflow_dispatch:
7+
8+
concurrency:
9+
group: download-history-${{ github.repository }}
10+
cancel-in-progress: false
11+
12+
permissions:
13+
contents: write
14+
15+
jobs:
16+
publish-download-history:
17+
name: Publish download history chart
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Publish downloads data and chart
24+
uses: Justagwas/github-downloads-action@v1
25+
with:
26+
token: ${{ secrets.GITHUB_TOKEN }}
27+
window_days: "365"
28+
output_branch: "gh-pages"
29+
output_path: "gh-dl/downloads.json"
30+
publish_chart: "true"
31+
chart_output_path: "gh-dl/downloads-trend.svg"
32+
chart_types: "total-trend"
33+
chart_themes: "slate"
34+
charts_output_dir: "gh-dl/charts"
35+
chart_width: "1000"
36+
chart_height: "360"
37+
chart_zero_baseline: "true"
38+
chart_y_ticks: "6"
39+
chart_x_label_every_days: "0"
40+
chart_show_value_labels: "false"
41+
chart_date_label_format: "yyyy-mm-dd"
42+
chart_show_generated_at: "true"
43+
chart_title_mode: "default"

README.en.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,3 +440,7 @@ MIT License - See [LICENSE](LICENSE) for details.
440440
## ⭐ Star History
441441

442442
[![Star History Chart](https://api.star-history.com/svg?repos=oboroge0/AITuberFlow&type=Date)](https://star-history.com/#oboroge0/AITuberFlow&Date)
443+
444+
## 📈 Download History
445+
446+
[![Downloads trend](https://raw.githubusercontent.com/oboroge0/AITuberFlow/gh-pages/gh-dl/downloads-trend.svg)](https://github.com/oboroge0/AITuberFlow/releases)

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,3 +459,7 @@ MIT License - 詳細は [LICENSE](LICENSE) を参照してください。
459459
## ⭐ Star History
460460

461461
[![Star History Chart](https://api.star-history.com/svg?repos=oboroge0/AITuberFlow&type=Date)](https://star-history.com/#oboroge0/AITuberFlow&Date)
462+
463+
## 📈 Download History
464+
465+
[![Downloads trend](https://raw.githubusercontent.com/oboroge0/AITuberFlow/gh-pages/gh-dl/downloads-trend.svg)](https://github.com/oboroge0/AITuberFlow/releases)

0 commit comments

Comments
 (0)