Skip to content

Commit d72ad8e

Browse files
authored
Merge pull request #50 from atcoder/patch/issue41
Fix #41: The url of github pages contains branch/tag name
2 parents 160d52a + 6490e0a commit d72ad8e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/document.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@ name: Document
22

33
on:
44
push:
5-
branches:
6-
- production
75

86
jobs:
97
doc:
108
runs-on: ubuntu-latest
119
steps:
1210
- uses: actions/checkout@v2
11+
- name: Set branch name
12+
id: branch
13+
run: echo "::set-output name=BRANCH_NAME::${GITHUB_REF##*/}"
1314
- name: Set up Python 3.7
1415
uses: actions/setup-python@v2
1516
with:
@@ -27,7 +28,8 @@ jobs:
2728
mv ../document_ja generated/ &&
2829
mv ../document_en generated/
2930
- name: Publish to github pages
30-
uses: peaceiris/actions-gh-pages@v3
31+
uses: peaceiris/actions-gh-pages@v3.7.0-8
3132
with:
3233
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
3334
publish_dir: ./tools/generated
35+
destination_dir: ${{ steps.branch.outputs.BRANCH_NAME }}

0 commit comments

Comments
 (0)