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 Oct 8, 2023
1 parent 67c1625 commit 22fab4a
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,29 @@ jobs:
- name: Echo README.md(gh-pages)
run: echo "${{ steps.ghpages.outputs.content }}"

- name: Converts Markdown to HTML
uses: jaywcjlove/markdown-to-html-cli@main
with:
output: build/index.html
github-corners: https://github.com/jaywcjlove/github-action-read-file
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: Converts Markdown to HTML
# uses: jaywcjlove/markdown-to-html-cli@main
# with:
# output: build/index.html
# github-corners: https://github.com/jaywcjlove/github-action-read-file
# 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 idoc config
run: |
cat > idoc.yml << EOF
site: "Read File {{version}}"
menus:
Read File: index.html
Changelog Generator: https://jaywcjlove.github.io/changelog-generator
Create Tag: https://jaywcjlove.github.io/create-tag-action
Contributors: https://jaywcjlove.github.io/github-action-contributors
Generated Badges: https://jaywcjlove.github.io/generated-badges
EOF
- run: npm install [email protected] -g
- run: idoc
- name: gh-pages README.md
working-directory: build
working-directory: dist
run: |
cat > README.md << EOF
Website: https://jaywcjlove.github.io/github-action-read-file
Expand All @@ -112,7 +126,7 @@ jobs:
with:
commit_message: ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
publish_dir: ./dist

- name: Generate Changelog
id: changelog
Expand Down

0 comments on commit 22fab4a

Please sign in to comment.