Skip to content

Commit ba777ab

Browse files
committed
ci: update workflows config.
1 parent 15a0faa commit ba777ab

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,52 @@ jobs:
2121
- run: npm i markdown-to-html-cli -g
2222
- run: markdown-to-html --output build/index.html
2323

24+
- name: Generate Contributors Images
25+
uses: jaywcjlove/github-action-contributors@main
26+
with:
27+
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
28+
output: build/CONTRIBUTORS.svg
29+
avatarSize: 42
30+
31+
- name: Create Tag
32+
id: create_tag
33+
uses: jaywcjlove/create-tag-action@main
34+
35+
- name: get tag version
36+
id: tag_version
37+
uses: jaywcjlove/changelog-generator@main
38+
2439
- name: Deploy
2540
uses: peaceiris/actions-gh-pages@v3
2641
with:
2742
github_token: ${{ secrets.GITHUB_TOKEN }}
2843
publish_dir: ./build
2944

45+
- name: Generate Changelog
46+
id: changelog
47+
uses: jaywcjlove/changelog-generator@main
48+
with:
49+
head-ref: ${{steps.create_tag.outputs.version}}
50+
filter-author: (renovate-bot|Renovate Bot)
51+
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
52+
53+
- name: Create Release
54+
uses: jaywcjlove/create-tag-action@main
55+
with:
56+
package-path: ./package.json
57+
release: true
58+
body: |
59+
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/loading-cli@${{steps.changelog.outputs.version}}/file/README.md)
60+
61+
Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/uiwjs/react-md-editor/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
62+
Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
63+
64+
```bash
65+
npm i loading-cli@${{steps.changelog.outputs.version}}
66+
```
67+
68+
${{ steps.changelog.outputs.changelog }}
69+
3070
- run: npm publish --access public --provenance
3171
name: 📦 loading-cli publish to NPM
3272
working-directory: core

0 commit comments

Comments
 (0)