2020-07-24 01:22:32 +08:00
|
|
|
name: Build and Deploy Documents
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-deploy:
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
|
|
|
|
|
|
|
- name: Setup Node
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: 10
|
|
|
|
|
|
|
|
- run: npm install
|
|
|
|
- run: npm run build
|
|
|
|
|
2021-12-08 21:23:14 +08:00
|
|
|
- name: Create Tag
|
|
|
|
id: create_tag
|
|
|
|
uses: jaywcjlove/create-tag-action@v1.3.5
|
|
|
|
with:
|
|
|
|
package-path: ./package.json
|
|
|
|
|
|
|
|
- name: Generate Changelog
|
|
|
|
id: changelog
|
|
|
|
uses: jaywcjlove/changelog-generator@v1.4.8
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
head-ref: ${{steps.create_tag.outputs.version}}
|
|
|
|
filter-author: (renovate-bot|Renovate Bot)
|
|
|
|
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
|
|
|
|
|
2020-07-24 01:22:32 +08:00
|
|
|
- name: Build and Deploy
|
2021-12-08 21:23:14 +08:00
|
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
publish_dir: ./typedoc
|
|
|
|
|
|
|
|
- name: Create Release
|
|
|
|
uses: jaywcjlove/create-tag-action@v1.3.5
|
|
|
|
with:
|
|
|
|
package-path: ./package.json
|
|
|
|
release: true
|
|
|
|
body: |
|
|
|
|
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-native-alipay@${{steps.changelog.outputs.version}}/file/README.md)
|
|
|
|
|
|
|
|
${{ steps.changelog.outputs.compareurl }}
|
|
|
|
|
|
|
|
${{ steps.changelog.outputs.changelog }}
|
|
|
|
|
|
|
|
```bash
|
|
|
|
npm i @uiw/react-native-alipay@${{steps.changelog.outputs.version}}
|
|
|
|
```
|
|
|
|
|
|
|
|
- name: 📦 @uiw/react-native-alipay publish to NPM
|
|
|
|
uses: JS-DevTools/npm-publish@v1
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.NPM_TOKEN }}
|
|
|
|
package: ./package.json
|