-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (48 loc) · 1.46 KB
/
badges.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Badges
on:
push:
branches:
- main
release:
types:
- created
jobs:
create_badges:
runs-on: ubuntu-latest
name: Create Badges
steps:
- name: Checkout Repository
uses: actions/checkout@v1
- name: Generate Badges
uses: thewerthon/[email protected]
id: badges
with:
directory: ./
patterns: "**"
ignore: "node_modules"
version_prefix: "v"
version_fallback: "v0.0.0"
version_badge: ./output/version.svg
updated_badge: ./output/updated.svg
files_badge: ./output/files.svg
lines_badge: ./output/lines.svg
version_badge_label: "Current Version"
updated_badge_label: "Last Updated"
files_badge_label: "Total of Files"
lines_badge_label: "Lines of Code"
version_badge_style: "classic"
updated_badge_style: "classic"
files_badge_style: "classic"
lines_badge_style: "classic"
version_badge_color: "green"
updated_badge_color: "blue"
files_badge_color: "blue"
lines_badge_color: "blue"
- name: Deploy to Branch
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./output
publish_branch: badges
github_token: ${{ secrets.GITHUB_TOKEN }}
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'