Skip to content

Commit afffb27

Browse files
committed
chore: Update .github/workflows/ci.yml -> .github/workflows/ci.marster.yml
1 parent 190623e commit afffb27

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

.github/workflows/ci.yml renamed to .github/workflows/ci.marster.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and Deploy
1+
name: Build & Deploy
22
on:
33
push:
44
branches:
@@ -17,14 +17,13 @@ jobs:
1717
node-version: 14
1818

1919
- run: npm install
20-
- run: npm run build
2120
- run: npm run coverage
2221
- run: npm run doc
2322

2423
- run: npm install @jsdevtools/npm-publish -g
2524
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json
2625

27-
- name: Create Tag
26+
- name: Is a tag created auto?
2827
id: create_tag
2928
uses: jaywcjlove/[email protected]
3029
with:
@@ -34,18 +33,13 @@ jobs:
3433
- name: Generate Changelog
3534
id: changelog
3635
uses: jaywcjlove/[email protected]
36+
if: steps.create_tag.outputs.successful
3737
with:
3838
token: ${{ secrets.GITHUB_TOKEN }}
39-
head-ref: ${{steps.create_tag.outputs.version}}
39+
head-ref: ${{ steps.create_tag.outputs.version }}
4040
filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
4141
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
4242

43-
- name: Deploy
44-
uses: peaceiris/actions-gh-pages@v3
45-
with:
46-
github_token: ${{ secrets.GITHUB_TOKEN }}
47-
publish_dir: ./build
48-
4943
- name: Create Release
5044
uses: ncipollo/release-action@v1
5145
if: steps.create_tag.outputs.successful
@@ -54,16 +48,22 @@ jobs:
5448
name: ${{ steps.create_tag.outputs.version }}
5549
tag: ${{ steps.create_tag.outputs.version }}
5650
body: |
57-
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-markdown-preview@${{steps.create_tag.outputs.versionNumber}}/file/README.md) [![npm bundle size](https://img.shields.io/bundlephobia/minzip/@uiw/react-markdown-preview)](https://bundlephobia.com/result?p=@uiw/react-markdown-preview@${{steps.create_tag.outputs.versionNumber}})
51+
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-markdown-preview@${{steps.create_tag.outputs.versionNumber}}/file/README.md)
5852
59-
```shell
53+
```bash
6054
npm i @uiw/react-markdown-preview@${{steps.create_tag.outputs.versionNumber}}
6155
```
6256
6357
${{ steps.changelog.outputs.compareurl }}
64-
58+
6559
${{ steps.changelog.outputs.changelog }}
6660
61+
- name: Deploy
62+
uses: peaceiris/actions-gh-pages@v3
63+
with:
64+
github_token: ${{ secrets.GITHUB_TOKEN }}
65+
publish_dir: ./build
66+
6767
- name: Coveralls
6868
uses: coverallsapp/github-action@master
6969
with:

0 commit comments

Comments
 (0)