fix: #1593 首次粘贴html内容时,cherry会默认把html转成Markdown,但提示的却是TEXT #236
Workflow file for this run
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: Preview Build | |
| on: | |
| pull_request: | |
| branches: [dev, main] | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - run: echo ${{ github.event.number }} > pr-id.txt | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: pr-id | |
| path: pr-id.txt | |
| retention-days: 5 | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: .node-version | |
| cache: 'yarn' | |
| - run: yarn install | |
| - run: yarn build | |
| - run: | | |
| mkdir -p playground/packages/cherry-markdown | |
| cp -r packages/cherry-markdown/dist playground/packages/cherry-markdown | |
| cp -r examples/assets playground | |
| cp examples/*.html playground | |
| find playground -type f -name "*.html" -exec sed -i 's|\.\./packages|./packages|g' {} + | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: playground | |
| path: playground | |
| retention-days: 5 |