Skip to content

Commit

Permalink
CNAME
Browse files Browse the repository at this point in the history
  • Loading branch information
hooozen committed Jul 3, 2023
1 parent 0146775 commit 4a6179b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ jobs:
container:
image: docker://hooozen/node-pandoc:latest
steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Use Node.js 16.x
Expand All @@ -39,10 +40,15 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public

- name: Checkout gh-pages
uses: actions/checkout@v3
with:
ref: gh-pages

- name: Move CNAME to gh-pages
run: |
git checkout gh-pages
git checkout main -- source/CNAME
git add source/CNAME
git checkout main -- source/CNAME:CNAME
git add CNAME
git commit -m "Move CNAME to gh-pages"
git push origin gh-pages

0 comments on commit 4a6179b

Please sign in to comment.