-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update .github/workflows/ci.yml
- Loading branch information
1 parent
44489f6
commit 657264a
Showing
1 changed file
with
21 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ on: | |
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build-deploy: | ||
runs-on: ubuntu-18.04 | ||
|
@@ -13,15 +14,32 @@ jobs: | |
node-version: 14 | ||
|
||
- name: Generate Changelog | ||
uses: jaywcjlove/[email protected].6 | ||
uses: jaywcjlove/[email protected].8 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
head-ref: ${{ steps.create_tag.outputs.version }} | ||
filter-author: (小弟调调™|Renovate Bot) | ||
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}' | ||
|
||
- run: yarn install | ||
# - name: HelloWorld -> Build Android Release | ||
# working-directory: HelloWorld | ||
# run: cd android && ./gradlew assembleRelease | ||
|
||
- run: yarn run start | ||
- run: git status | ||
|
||
- run: npm i markdown-to-html-cli -g | ||
- run: mkdir -p build | ||
- run: markdown-to-html --output build/index.html | ||
|
||
- run: npm install @jsdevtools/npm-publish -g | ||
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./template/package.json | ||
|
||
release: | ||
runs-on: ubuntu-18.04 | ||
needs: build-deploy | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Is a tag created auto? | ||
id: create_tag | ||
uses: jaywcjlove/[email protected] | ||
|
@@ -31,12 +49,11 @@ jobs: | |
|
||
- name: Generate Changelog | ||
id: changelog | ||
uses: jaywcjlove/[email protected].6 | ||
uses: jaywcjlove/[email protected].8 | ||
if: steps.create_tag.outputs.successful | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
head-ref: ${{ steps.create_tag.outputs.version }} | ||
filter-author: (小弟调调™|Renovate Bot) | ||
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}' | ||
|
||
- name: Create Release | ||
|
@@ -56,12 +73,3 @@ jobs: | |
${{ steps.changelog.outputs.compareurl }} | ||
${{ steps.changelog.outputs.changelog }} | ||
# - name: HelloWorld -> Build Android Release | ||
# working-directory: HelloWorld | ||
# run: cd android && ./gradlew assembleRelease | ||
|
||
- run: yarn run start | ||
- run: git status | ||
- run: npm install @jsdevtools/npm-publish -g | ||
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./template/package.json |