doc: update README.md #118
This file contains hidden or 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
| name: Build & Deploy | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Generate Contributors Images | |
| uses: jaywcjlove/github-action-contributors@main | |
| id: contributors | |
| with: | |
| avatarSize: 42 | |
| - name: Modify template/README.md | |
| uses: jaywcjlove/github-action-modify-file-content@main | |
| with: | |
| path: template/README.md | |
| openDelimiter: '<!--AUTO_GENERATED_PLEASE_DONT_DELETE_IT-->' | |
| closeDelimiter: '<!--AUTO_GENERATED_PLEASE_DONT_DELETE_IT-END-->' | |
| body: ${{steps.contributors.outputs.htmlList}} | |
| - 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 --title "React Native UIW Template" --github-corners https://github.com/uiwjs/react-native-template --description="React Native Template for @uiw/react-native." --keywords="react-native-template,react-native,template" | |
| - name: Deploy Website | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./build | |
| - run: npm install @jsdevtools/npm-publish -g | |
| - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./template/package.json | |
| release: | |
| runs-on: ubuntu-latest | |
| needs: build-deploy | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Is a tag created auto? | |
| id: create_tag | |
| uses: jaywcjlove/create-tag-action@main | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| package-path: ./template/package.json | |
| - name: Generate Changelog | |
| id: changelog | |
| uses: jaywcjlove/changelog-generator@main | |
| if: steps.create_tag.outputs.successful | |
| 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}' | |
| - name: Create Release | |
| uses: ncipollo/release-action@v1 | |
| if: steps.create_tag.outputs.successful | |
| with: | |
| allowUpdates: true | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| name: ${{ steps.changelog.outputs.tag }} | |
| tag: ${{ steps.changelog.outputs.tag }} | |
| body: | | |
| [](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-native-template@${{steps.changelog.outputs.version}}/file/README.md) [](https://www.npmjs.com/package/@uiw/react-native-template) | |
| ```bash | |
| npm i @uiw/react-native-template@${{steps.changelog.outputs.version}} | |
| ``` | |
| ${{ steps.changelog.outputs.compareurl }} | |
| ${{ steps.changelog.outputs.changelog }} |