summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-12-06 13:40:31 +0000
committerDan Davison <dandavison7@gmail.com>2020-12-06 13:40:31 +0000
commit2a22127aca7ec14d9a730ab45ad58f3cba903ea7 (patch)
tree4135b0976d801f0d8253146a0dfc2ecb42048a39
parent1d54426f87caf33e1d94596a02e82b3f66465ccc (diff)
Try againadd-loc-badge
-rw-r--r--.github/workflows/ci.yml14
-rw-r--r--README.md2
2 files changed, 14 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1cd1ac40..32e3ddb2 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -137,4 +137,16 @@ jobs:
with:
debug: true
directory: ./
- badge: ./etc/loc-badge.svg
+ badge: ./output/badge.svg
+ - name: Print the output
+ run: |
+ echo "Scanned: ${{ steps.badge.outputs.counted_files }}";
+ echo "Line Count: ${{ steps.badge.outputs.total_lines }}";
+ - name: Deploy to branch
+ uses: peaceiris/actions-gh-pages@v3
+ with:
+ publish_dir: ./output
+ publish_branch: loc-badge
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ user_name: 'github-actions[bot]'
+ user_email: 'github-actions[bot]@users.noreply.github.com'
diff --git a/README.md b/README.md
index ed7b8e53..99f5076b 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
[![CI](https://github.com/dandavison/delta/workflows/Continuous%20Integration/badge.svg)](https://github.com/dandavison/delta/actions)
-![Generated Button](https://raw.githubusercontent.com/dandavison/delta/etc/loc-badge.svg)
+![LoC Badge](https://raw.githubusercontent.com/dandavison/delta/loc-badge/badge.svg)
[![Coverage Status](https://coveralls.io/repos/github/dandavison/delta/badge.svg?branch=master)](https://coveralls.io/github/dandavison/delta?branch=master)
[![Gitter](https://badges.gitter.im/dandavison-delta/community.svg)](https://gitter.im/dandavison-delta/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)