Skip to content

Commit 61f1edb

Browse files
committed
ci: update workflows config.
1 parent 5307872 commit 61f1edb

File tree

1 file changed

+46
-45
lines changed

1 file changed

+46
-45
lines changed

.github/workflows/ci.yml

Lines changed: 46 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI
22
on:
33
push:
44
branches:
5-
- main
5+
- v2
66

77
jobs:
88
build-deploy:
@@ -20,65 +20,66 @@ jobs:
2020
- run: npm run doc
2121
# working-directory: ./www
2222

23-
- name: Create Coverage Badges
24-
uses: jaywcjlove/coverage-badges-cli@main
25-
with:
26-
source: core/coverage/coverage-summary.json
27-
output: ./www/build/badges.svg
23+
# - name: Create Coverage Badges
24+
# uses: jaywcjlove/coverage-badges-cli@main
25+
# with:
26+
# source: core/coverage/coverage-summary.json
27+
# output: ./www/build/badges.svg
2828

29-
- run: cp -rp core/coverage/lcov-report ./www/build/
29+
# - run: cp -rp core/coverage/lcov-report ./www/build/
3030

31-
- name: Generate Contributors Images
32-
uses: jaywcjlove/github-action-contributors@main
33-
with:
34-
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
35-
output: www/build/CONTRIBUTORS.svg
36-
avatarSize: 42
31+
# - name: Generate Contributors Images
32+
# uses: jaywcjlove/github-action-contributors@main
33+
# with:
34+
# filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
35+
# output: www/build/CONTRIBUTORS.svg
36+
# avatarSize: 42
3737

38-
- name: Create Tag
39-
id: create_tag
40-
uses: jaywcjlove/create-tag-action@main
41-
with:
42-
token: ${{ secrets.GITHUB_TOKEN }}
43-
package-path: ./core/package.json
38+
# - name: Create Tag
39+
# id: create_tag
40+
# uses: jaywcjlove/create-tag-action@main
41+
# with:
42+
# token: ${{ secrets.GITHUB_TOKEN }}
43+
# package-path: ./core/package.json
4444

45-
- name: get tag version
46-
id: tag_version
47-
uses: jaywcjlove/changelog-generator@main
45+
# - name: get tag version
46+
# id: tag_version
47+
# uses: jaywcjlove/changelog-generator@main
4848

4949
- name: Deploy
5050
uses: peaceiris/actions-gh-pages@v3
5151
with:
52-
commit_message: ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
52+
commit_message: ${{ github.event.head_commit.message }}
5353
github_token: ${{ secrets.GITHUB_TOKEN }}
5454
publish_dir: ./www/build
55+
publish_branch: v2-docs
5556

56-
- name: Generate Changelog
57-
id: changelog
58-
uses: jaywcjlove/changelog-generator@main
59-
with:
60-
head-ref: ${{steps.create_tag.outputs.version}}
61-
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
57+
# - name: Generate Changelog
58+
# id: changelog
59+
# uses: jaywcjlove/changelog-generator@main
60+
# with:
61+
# head-ref: ${{steps.create_tag.outputs.version}}
62+
# filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
6263

63-
- name: Create Release
64-
uses: ncipollo/release-action@v1
65-
if: steps.create_tag.outputs.successful
66-
with:
67-
token: ${{ secrets.GITHUB_TOKEN }}
68-
name: ${{ steps.create_tag.outputs.version }}
69-
tag: ${{ steps.create_tag.outputs.version }}
70-
body: |
71-
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-json-view@${{steps.create_tag.outputs.versionNumber}}/file/README.md)
64+
# - name: Create Release
65+
# uses: ncipollo/release-action@v1
66+
# if: steps.create_tag.outputs.successful
67+
# with:
68+
# token: ${{ secrets.GITHUB_TOKEN }}
69+
# name: ${{ steps.create_tag.outputs.version }}
70+
# tag: ${{ steps.create_tag.outputs.version }}
71+
# body: |
72+
# [![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-json-view@${{steps.create_tag.outputs.versionNumber}}/file/README.md)
7273

73-
Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/uiwjs/react-json-view/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
74-
Or Doc Website: https://htmlpreview.github.io/?https://github.com/uiwjs/react-json-view/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
75-
Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
74+
# Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/uiwjs/react-json-view/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
75+
# Or Doc Website: https://htmlpreview.github.io/?https://github.com/uiwjs/react-json-view/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
76+
# Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
7677

77-
```bash
78-
npm i @uiw/react-json-view@${{steps.create_tag.outputs.versionNumber}}
79-
```
78+
# ```bash
79+
# npm i @uiw/react-json-view@${{steps.create_tag.outputs.versionNumber}}
80+
# ```
8081

81-
${{ steps.changelog.outputs.changelog }}
82+
# ${{ steps.changelog.outputs.changelog }}
8283

8384
- run: npm publish --access public
8485
name: 📦 @uiw/react-json-view publish to NPM

0 commit comments

Comments
 (0)