Skip to content

Commit

Permalink
Merge pull request #6 from CMEPW/feat/ci/add-workflow-to-generate-ind…
Browse files Browse the repository at this point in the history
…ex-automatically

feat(ci): add workflow to generate the index.html automatically
  • Loading branch information
jenaye authored Feb 5, 2023
2 parents 9803653 + 5bce068 commit 704052c
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 5 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Generate the new index.html if necessary and upload as artifact

on:
pull_request:
push:
branches:
- main

jobs:
generate-index-html:
name: Validate Go code linting
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Install markmap-cli
run: npm install -g markmap-cli
- name: Run markmap-cli to export as HTML
run: markmap Bypass-AV.md -o docs/index.html
- name: Run markmap-cli to export as HTML
run: markmap Bypass-AV.md -o docs/index.html
- name: Commit the new HTML index file if necessary
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Auto-update the index.html
file_pattern: docs/index.html
- uses: actions/upload-artifact@v3
with:
name: index.html
path: docs/index.html
Loading

0 comments on commit 704052c

Please sign in to comment.