Skip to content

Commit

Permalink
chore: update workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 5, 2022
1 parent 5ad1842 commit 946754f
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}'
Expand All @@ -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 }}
Expand Down

0 comments on commit 946754f

Please sign in to comment.