From 0ad77145e39f01493da762d2b196100bfe1e660b Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 4 Mar 2022 09:23:12 +0800 Subject: [PATCH] chore: update workflows config. --- .github/workflows/ci.yml | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d17a4ba7..65b43beb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,8 +19,41 @@ jobs: - run: npm run build - run: npm run map + - 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: ./build \ No newline at end of file + publish_dir: ./build + + - name: Create Tag + id: create_tag + uses: jaywcjlove/create-tag-action@v1.3.6 + with: + package-path: package.json + + - name: Generate Changelog + id: changelog + uses: jaywcjlove/changelog-generator@v1.5.0 + if: steps.create_tag.outputs.successful + with: + head-ref: ${{steps.create_tag.outputs.version}} + filter-author: (jaywcjlove|小弟调调™|dependabot\[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: + token: ${{ secrets.GITHUB_TOKEN }} + name: ${{ steps.create_tag.outputs.version }} + tag: ${{ steps.create_tag.outputs.version }} + body: | + Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/uiwjs/ui-color/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html + Comparing Changes: ${{ steps.changelog.outputs.compareurl }} + + ${{ steps.changelog.outputs.changelog }} \ No newline at end of file