File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- main
7
- # Review gh actions docs if you want to further define triggers, paths, etc
8
- # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
7
+ - wiki
9
8
10
9
jobs :
11
10
deploy :
@@ -29,18 +28,15 @@ jobs:
29
28
- name : PWD
30
29
run : pwd
31
30
32
- # Popular action to deploy to GitHub Pages:
33
- # Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
31
+ # Step to create CNAME file for redirection
32
+ - name : Create CNAME file
33
+ run : echo "yourcustomdomain.com" > ./build/CNAME
34
+
35
+ # Popular action to deploy to GitHub Pages
34
36
- name : Deploy to GitHub Pages
35
37
uses : peaceiris/actions-gh-pages@v3
36
38
with :
37
39
github_token : ${{ secrets.GITHUB_TOKEN }}
38
- # Build output to publish to the `gh-pages` branch:
39
40
publish_dir : ./build
40
- # The following lines assign commit authorship to the official
41
- # GH-Actions bot for deploys to `gh-pages` branch:
42
- # https://github.com/actions/checkout/issues/13#issuecomment-724415212
43
- # The GH actions bot is used by default if you didn't specify the two fields.
44
- # You can swap them out with your own user credentials.
45
41
user_name : github-actions[bot]
46
42
user_email : 41898282+github-actions[bot]@users.noreply.github.com
You can’t perform that action at this time.
0 commit comments