Skip to content

Commit ef7d4a8

Browse files
authored
update deploy.yml
1 parent 237df06 commit ef7d4a8

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ on:
44
push:
55
branches:
66
- 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
98

109
jobs:
1110
deploy:
@@ -29,18 +28,15 @@ jobs:
2928
- name: PWD
3029
run: pwd
3130

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
3436
- name: Deploy to GitHub Pages
3537
uses: peaceiris/actions-gh-pages@v3
3638
with:
3739
github_token: ${{ secrets.GITHUB_TOKEN }}
38-
# Build output to publish to the `gh-pages` branch:
3940
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.
4541
user_name: github-actions[bot]
4642
user_email: 41898282+github-actions[bot]@users.noreply.github.com

0 commit comments

Comments
 (0)