Skip to content

Commit d784e68

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

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/pelican.yml

+19-3
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,27 @@ on:
99

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

1514
steps:
1615
- uses: actions/checkout@v2
17-
- uses: bimbimprasetyoafif/pelican-simple@v1
16+
17+
- name: Build Pelican website
18+
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: Check-out gh-pages branch
26+
uses: actions/checkout@v2
27+
with:
28+
ref: gh-pages
29+
30+
- name: Add CNAME file to gh-pages branch
31+
uses: EndBug/add-and-commit@v9
32+
with:
33+
message: 'Add CNAME'
34+
add: 'CNAME'
35+
cwd: '.'

0 commit comments

Comments
 (0)