Skip to content

Commit ce1b1cb

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

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/pelican.yml

+20-3
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,28 @@ 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: Check-out gh-pages branch
23+
uses: actions/checkout@v2
24+
with:
25+
ref: gh-pages
26+
path: gh-pages
27+
28+
- name: Create CNAME file
29+
run: echo "saocarlos.pyladies.com" > ./gh-pages/CNAME
30+
31+
- name: Add CNAME file to gh-pages branch
32+
uses: EndBug/add-and-commit@v9
33+
with:
34+
message: 'Add CNAME'
35+
add: 'CNAME'
36+
cwd: 'gh-pages'

0 commit comments

Comments
 (0)