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 Apr 6, 2022
1 parent beb060e commit 7d84f16
Showing 1 changed file with 33 additions and 14 deletions.
47 changes: 33 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Build
name: CI
on:
push:
branches:
- master

jobs:
build-deploy:
runs-on: ubuntu-18.04
Expand All @@ -16,29 +17,44 @@ jobs:
- run: npm run build
- run: npm run coverage

- run: npm i markdown-to-html-cli coverage-badges-cli -g
- run: coverage-badges
- run: markdown-to-html --output coverage/index.html --favicon 'data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>⛱️</text></svg>'
- name: Create Coverage Badges
uses: jaywcjlove/coverage-badges-cli@main

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
- name: Generate Contributors Images
uses: jaywcjlove/github-action-contributors@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./coverage
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
output: coverage/CONTRIBUTORS.svg
avatarSize: 42

- name: Converts Markdown to HTML
uses: jaywcjlove/markdown-to-html-cli@main
with:
output: coverage/index.html
favicon: data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>⛱️</text></svg>

- name: Create Tag
id: create_tag
uses: jaywcjlove/create-tag-action@v1.2.1
uses: jaywcjlove/create-tag-action@v1.3.6
with:
token: ${{ secrets.GITHUB_TOKEN }}
package-path: ./package.json

- name: get tag version
id: tag_version
uses: jaywcjlove/[email protected]

- 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: ./coverage

- name: Generate Changelog
id: changelog
uses: jaywcjlove/[email protected]
if: steps.create_tag.outputs.successful
uses: jaywcjlove/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
head-ref: ${{steps.create_tag.outputs.version}}
filter-author: (小弟调调™|Renovate Bot)
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
Expand All @@ -61,5 +77,8 @@ jobs:
${{ steps.changelog.outputs.changelog }}
- run: npm install @jsdevtools/npm-publish -g
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json
- name: 📦 compile-less-cli publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./package.json

0 comments on commit 7d84f16

Please sign in to comment.