-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from CMEPW/feat/ci/add-workflow-to-generate-ind…
…ex-automatically feat(ci): add workflow to generate the index.html automatically
- Loading branch information
Showing
2 changed files
with
39 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.