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 7, 2022
1 parent ca0b1cb commit b9e6296
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build & Deploy
name: CI
on:
push:
branches:
Expand All @@ -23,36 +23,41 @@ jobs:
avatarSize: 42
output: build/CONTRIBUTORS.svg

- name: ♻️ Is a tag created auto?
id: create_tag
uses: jaywcjlove/create-tag-action@v1.3.6
with:
package-path: ./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: ./build

- name: ♻️ Is a tag created auto?
id: create_tag
uses: jaywcjlove/create-tag-action@v1.3.5
with:
package-path: ./package.json

- name: 📝 Generate Changelog
id: changelog
uses: jaywcjlove/changelog-generator@v1.4.8
uses: jaywcjlove/changelog-generator@v1.5.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
head-ref: ${{steps.create_tag.outputs.version}}
filter-author: (小弟调调™|renovate-bot)
filter-author: (renovate-bot|dependabot|dependabot\[bot\]|Renovate Bot)
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'

- name: ♻️ Create Release
uses: jaywcjlove/create-tag-action@v1.3.4
uses: jaywcjlove/create-tag-action@v1.3.6
with:
package-path: ./package.json
release: true
body: |
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-monacoeditor@${{steps.create_tag.outputs.versionNumber}}/file/README.md)
${{ steps.changelog.outputs.compareurl }}
Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/uiwjs/react-monacoeditor/${{ 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 b9e6296

Please sign in to comment.