Skip to content

Commit 2ba5498

Browse files
committed
Update Action to add CNAME file
1 parent cc9a333 commit 2ba5498

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/pelican.yml

+16-2
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,25 @@ on:
99

1010
jobs:
1111
build:
12-
1312
runs-on: ubuntu-latest
1413

1514
steps:
15+
16+
- name: Build Pelican website
1617
- uses: actions/checkout@v2
1718
- uses: bimbimprasetyoafif/pelican-simple@v1
1819
env:
19-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
20+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
21+
22+
- name: Create CNAME file
23+
- run: echo "saocarlos.pyladies.com" > ./CNAME
24+
25+
- name: Add CNAME file to gh-pages branch
26+
- uses: actions/checkout@v2
27+
with:
28+
ref: gh-pages
29+
- uses: EndBug/add-and-commit@v9
30+
with:
31+
message: 'Add CNAME'
32+
add: 'CNAME'
33+
cwd: '.'

0 commit comments

Comments
 (0)