Skip to content

Commit acbc68a

Browse files
committed
Update build-website.yml
1 parent 6b865e5 commit acbc68a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/build-website.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,18 @@ jobs:
5353
python -m pip install --upgrade pip
5454
export PATH=/home/runner/.local/bin:$PATH
5555
JEKYLL_ENV=production bundle exec jekyll build --strict_front_matter -d _site/
56+
- name: Add CNAME to publish directory
57+
run: |
58+
# ensure the CNAME in repo root is copied into the generated site so GitHub Pages uses the custom domain
59+
if [ -f CNAME ]; then
60+
mkdir -p website/_site
61+
cp CNAME website/_site/CNAME
62+
fi
5663
5764
- name: Deploy 🚀
5865
uses: peaceiris/actions-gh-pages@v3
5966
with:
6067
github_token: ${{ secrets.GITHUB_TOKEN }}
6168
publish_dir: ./website/_site/
6269
publish_branch: gh-pages
70+
cname: writeups.cyscomvit.com

0 commit comments

Comments
 (0)