-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Github pages automatic deployment mermaid diagrams
- Loading branch information
1 parent
4a66989
commit cdabb0f
Showing
11 changed files
with
29 additions
and
3 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 |
---|---|---|
|
@@ -56,3 +56,29 @@ jobs: | |
git push --force-with-lease | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_PAT }} | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
|
||
- name: Configure Git Identity | ||
run: | | ||
git config user.email "[email protected]" | ||
git config user.name "GitHub Actions" | ||
- name: Generate mermaid diagrams | ||
run: ./script/gen_mermaid.py | ||
|
||
- name: Commit to deployment branch | ||
run: | | ||
git fetch | ||
git checkout --orphan deployment | ||
git add mermaid_graphs | ||
git commit -m 'Auto-generate mermaid diagrams' | ||
git push --force origin deployment | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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