Skip to content

Commit 8fbb175

Browse files
committed
feat: ドキュメントワークフローのパスを修正し、英語ドキュメントへのリダイレクトを追加
1 parent 97cdaf0 commit 8fbb175

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/document.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ on:
77
- main
88
- develop
99
paths:
10-
- 'docs/**'
10+
- "docs/**"
1111
pull_request:
1212
branches:
1313
- main
1414
- develop
1515
paths:
16-
- 'docs/**'
16+
- "docs/**"
1717

1818
concurrency:
19-
group: 'pages'
19+
group: "pages"
2020
cancel-in-progress: true
2121

2222
permissions:
@@ -57,6 +57,12 @@ jobs:
5757
cd docs
5858
python build.py
5959
60+
- name: Redirect to the en documentation
61+
run: |
62+
username=$(echo $GITHUB_REPOSITORY | cut -d '/' -f 1)
63+
repository=$(echo $GITHUB_REPOSITORY | cut -d '/' -f 2)
64+
echo '<meta http-equiv="refresh" content="0; url=https://'$username'.github.io/'$repository'/en" />' > ./docs/pages/index.html
65+
6066
- name: Deploy documentation
6167
uses: peaceiris/actions-gh-pages@v4
6268
with:

0 commit comments

Comments
 (0)