Skip to content

Commit 2292896

Browse files
committed
Update build-website.yml
1 parent 0f48cc0 commit 2292896

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
@@ -50,10 +50,18 @@ jobs:
5050
export PATH=/home/runner/.local/bin:$PATH
5151
JEKYLL_ENV=production bundle exec jekyll build --strict_front_matter -d _site/
5252
53+
- name: Add CNAME to publish directory
54+
run: |
55+
# ensure the CNAME in repo root is copied into the generated site so GitHub Pages uses the custom domain
56+
if [ -f CNAME ]; then
57+
mkdir -p website/_site
58+
cp CNAME website/_site/CNAME
59+
fi
5360
- name: Deploy 🚀
5461
uses: peaceiris/actions-gh-pages@v3
5562
with:
5663
github_token: ${{ secrets.GITHUB_TOKEN }}
5764
publish_dir: ./website/_site/
5865
publish_branch: gh-pages
66+
cname: writeups.cyscomvit.com
5967

0 commit comments

Comments
 (0)