Skip to content

Commit bc9b02c

Browse files
Merge pull request #427 from friederbluemle/cname-no-fork
Remove CNAME and only create on source repo deploy
2 parents cd9471b + acd3b43 commit bc9b02c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/gh-pages.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,14 @@ jobs:
1010
- uses: actions/setup-ruby@v1
1111
- run: bundle install
1212
- run: bundle exec jekyll build
13+
- id: cname
14+
run: |
15+
if [ ${{ github.event.repository.fork }} = 'false' ]; then
16+
echo "::set-output name=cname::www.electrode.io"
17+
fi
1318
- uses: peaceiris/actions-gh-pages@v3
1419
with:
20+
cname: ${{ steps.cname.outputs.cname }}
1521
commit_message: Deploy
1622
github_token: ${{ secrets.GITHUB_TOKEN }}
1723
publish_dir: ./_site

CNAME

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)