diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3908eb15..003b76ae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -67,24 +67,28 @@ jobs: - run: cp -rp core/dist/*js website/build - run: cp -rp core/dist/*css website/build + - name: Is a tag created auto? + id: create_tag + uses: jaywcjlove/create-tag-action@v1.3.6 + with: + package-path: ./core/package.json + + - name: get tag version + id: tag_version + uses: jaywcjlove/changelog-generator@v1.5.0 + - name: Deploy uses: peaceiris/actions-gh-pages@v3 with: + commit_message: ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }} github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./website/build - - name: Is a tag created auto? - id: create_tag - uses: jaywcjlove/create-tag-action@v1.3.5 - with: - package-path: ./core/package.json - - name: Generate Changelog id: changelog - uses: jaywcjlove/changelog-generator@v1.4.8 + uses: jaywcjlove/changelog-generator@v1.5.0 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}' @@ -97,8 +101,8 @@ jobs: name: ${{ steps.changelog.outputs.tag }} tag: ${{ steps.changelog.outputs.tag }} body: | - - ${{ steps.changelog.outputs.compareurl }} + Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/uiwjs/react-codemirror/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html + Comparing Changes: ${{ steps.changelog.outputs.compareurl }} ${{ steps.changelog.outputs.changelog }}