Skip to content

Commit

Permalink
ci: update workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 1, 2023
1 parent 47b9057 commit 4d910b8
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,21 @@ jobs:
- run: npm run type-check
- run: npm run coverage

- uses: jaywcjlove/coverage-badges-cli@main
- name: Create idoc config
run: |
cat > idoc.yml << EOF
site: "rehype-attr {{version}}"
menus:
Home: index.html
EOF
- run: npm i coverage-badges-cli markdown-to-html-cli -g
- run: coverage-badges
- run: markdown-to-html --output coverage/index.html --github-corners https://github.com/jaywcjlove/rehype-attr
- run: npm install [email protected] -g
- run: idoc

- uses: jaywcjlove/coverage-badges-cli@main
with:
output: dist/badges.svg

- name: Create Tag
id: create_tag
uses: jaywcjlove/create-tag-action@main
Expand All @@ -35,12 +44,19 @@ jobs:
id: tag_version
uses: jaywcjlove/changelog-generator@main

- name: Generate Contributors Images
uses: jaywcjlove/github-action-contributors@main
with:
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
output: dist/CONTRIBUTORS.svg
avatarSize: 42

- 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
publish_dir: ./dist

- name: Generate Changelog
id: changelog
Expand Down

0 comments on commit 4d910b8

Please sign in to comment.