Skip to content

Commit 657264a

Browse files
committed
chore: update .github/workflows/ci.yml
1 parent 44489f6 commit 657264a

1 file changed

Lines changed: 21 additions & 13 deletions

File tree

.github/workflows/ci.yml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
push:
44
branches:
55
- master
6+
67
jobs:
78
build-deploy:
89
runs-on: ubuntu-18.04
@@ -13,15 +14,32 @@ jobs:
1314
node-version: 14
1415

1516
- name: Generate Changelog
16-
uses: jaywcjlove/changelog-generator@v1.4.6
17+
uses: jaywcjlove/changelog-generator@v1.4.8
1718
with:
1819
token: ${{ secrets.GITHUB_TOKEN }}
1920
head-ref: ${{ steps.create_tag.outputs.version }}
20-
filter-author: (小弟调调™|Renovate Bot)
2121
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
2222

2323
- run: yarn install
24+
# - name: HelloWorld -> Build Android Release
25+
# working-directory: HelloWorld
26+
# run: cd android && ./gradlew assembleRelease
27+
28+
- run: yarn run start
29+
- run: git status
30+
31+
- run: npm i markdown-to-html-cli -g
32+
- run: mkdir -p build
33+
- run: markdown-to-html --output build/index.html
34+
35+
- run: npm install @jsdevtools/npm-publish -g
36+
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./template/package.json
2437

38+
release:
39+
runs-on: ubuntu-18.04
40+
needs: build-deploy
41+
steps:
42+
- uses: actions/checkout@v2
2543
- name: Is a tag created auto?
2644
id: create_tag
2745
uses: jaywcjlove/create-tag-action@v1.2.1
@@ -31,12 +49,11 @@ jobs:
3149

3250
- name: Generate Changelog
3351
id: changelog
34-
uses: jaywcjlove/changelog-generator@v1.4.6
52+
uses: jaywcjlove/changelog-generator@v1.4.8
3553
if: steps.create_tag.outputs.successful
3654
with:
3755
token: ${{ secrets.GITHUB_TOKEN }}
3856
head-ref: ${{ steps.create_tag.outputs.version }}
39-
filter-author: (小弟调调™|Renovate Bot)
4057
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
4158

4259
- name: Create Release
@@ -56,12 +73,3 @@ jobs:
5673
${{ steps.changelog.outputs.compareurl }}
5774
5875
${{ steps.changelog.outputs.changelog }}
59-
60-
# - name: HelloWorld -> Build Android Release
61-
# working-directory: HelloWorld
62-
# run: cd android && ./gradlew assembleRelease
63-
64-
- run: yarn run start
65-
- run: git status
66-
- run: npm install @jsdevtools/npm-publish -g
67-
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./template/package.json

0 commit comments

Comments
 (0)