Skip to content

Commit 2bc93e3

Browse files
committed
chore: update workflows config.
1 parent 61d3516 commit 2bc93e3

File tree

1 file changed

+45
-45
lines changed

1 file changed

+45
-45
lines changed

.github/workflows/ci.yml

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -65,51 +65,51 @@ jobs:
6565
- run: cp -rp core/dist/*js website/build
6666
- run: cp -rp core/dist/*css website/build
6767

68-
# - name: Is a tag created auto?
69-
# id: create_tag
70-
# uses: jaywcjlove/[email protected]
71-
# with:
72-
# package-path: ./core/package.json
73-
74-
# - name: get tag version
75-
# id: tag_version
76-
# uses: jaywcjlove/[email protected]
77-
78-
# - name: Deploy
79-
# uses: peaceiris/actions-gh-pages@v3
80-
# with:
81-
# commit_message: ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
82-
# github_token: ${{ secrets.GITHUB_TOKEN }}
83-
# publish_dir: ./website/build
84-
85-
# - name: Generate Changelog
86-
# id: changelog
87-
# uses: jaywcjlove/[email protected]
88-
# if: steps.create_tag.outputs.successful
89-
# with:
90-
# head-ref: ${{ steps.create_tag.outputs.version }}
91-
# filter-author: (小弟调调™|Renovate Bot|renovate-bot)
92-
# filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
93-
94-
# - name: Create Release
95-
# uses: ncipollo/release-action@v1
96-
# if: steps.create_tag.outputs.successful
97-
# with:
98-
# token: ${{ secrets.GITHUB_TOKEN }}
99-
# name: ${{ steps.changelog.outputs.tag }}
100-
# tag: ${{ steps.changelog.outputs.tag }}
101-
# body: |
102-
# Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/uiwjs/react-codemirror/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
103-
# Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
68+
- name: Is a tag created auto?
69+
id: create_tag
70+
uses: jaywcjlove/[email protected]
71+
with:
72+
package-path: ./core/package.json
73+
74+
- name: get tag version
75+
id: tag_version
76+
uses: jaywcjlove/[email protected]
77+
78+
- name: Deploy
79+
uses: peaceiris/actions-gh-pages@v3
80+
with:
81+
commit_message: ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
82+
github_token: ${{ secrets.GITHUB_TOKEN }}
83+
publish_dir: ./website/build
84+
85+
- name: Generate Changelog
86+
id: changelog
87+
uses: jaywcjlove/[email protected]
88+
if: steps.create_tag.outputs.successful
89+
with:
90+
head-ref: ${{ steps.create_tag.outputs.version }}
91+
filter-author: (小弟调调™|Renovate Bot|renovate-bot)
92+
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
93+
94+
- name: Create Release
95+
uses: ncipollo/release-action@v1
96+
if: steps.create_tag.outputs.successful
97+
with:
98+
token: ${{ secrets.GITHUB_TOKEN }}
99+
name: ${{ steps.changelog.outputs.tag }}
100+
tag: ${{ steps.changelog.outputs.tag }}
101+
body: |
102+
Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/uiwjs/react-codemirror/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
103+
Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
104104
105-
# ${{ steps.changelog.outputs.changelog }}
105+
${{ steps.changelog.outputs.changelog }}
106106
107-
# # - run: git status
108-
# # - run: npm install @jsdevtools/npm-publish -g
109-
# # - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./core/package.json
107+
# - run: git status
108+
# - run: npm install @jsdevtools/npm-publish -g
109+
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./core/package.json
110110

111-
# - name: 📦 @uiw/react-layout publish to NPM
112-
# uses: JS-DevTools/npm-publish@v1
113-
# with:
114-
# token: ${{ secrets.NPM_TOKEN }}
115-
# package: ./core/package.json
111+
- name: 📦 @uiw/react-layout publish to NPM
112+
uses: JS-DevTools/npm-publish@v1
113+
with:
114+
token: ${{ secrets.NPM_TOKEN }}
115+
package: ./core/package.json

0 commit comments

Comments
 (0)