Skip to content

Commit

Permalink
Merge pull request #27 from ken4647/master
Browse files Browse the repository at this point in the history
fix problem for cname setup
  • Loading branch information
Inquisitor-201 authored Jan 2, 2025
2 parents a589664 + 6563a82 commit cc2d87d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
env:
CUSTOM_DOMAIN: "ruxos.syswonder.org"
permissions:
contents: write # To push a branch
pull-requests: write # To create a PR from that branch
Expand All @@ -23,9 +25,6 @@ jobs:
echo `pwd`/mdbook >> $GITHUB_PATH
- name: Install i18n support
run: cargo install mdbook-i18n
- name: set up cname for custom domain
run: |
echo "ruxos.syswonder.org" > CNAME
- name: Deploy GitHub Pages
run: |
# This assumes your book is in the root of your repository.
Expand All @@ -35,6 +34,8 @@ jobs:
git config user.name "Deploy from CI"
git config user.email ""
cd gh-pages
# set up cname for custom domain
echo "$CUSTOM_DOMAIN" > CNAME
# Delete the ref to avoid keeping history.
git update-ref -d refs/heads/gh-pages
rm -rf *
Expand Down

0 comments on commit cc2d87d

Please sign in to comment.