-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.23 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Build
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
bundler-cache: true
- name: Build
run: bundle exec jekyll build
- name: Patch
run: |
cd _site
mv assets/css/style.css .
rm -rf assets/css README.md feed.xml
sed -i 's|/assets/css/style.css.*"|style.css"|g' index.html
sed -i 's|This page was generated by <a href="https://pages.github.com">GitHub Pages</a>|This page was hosted on <a href="https://pages.cloudflare.com/">Cloudflare Pages</a>|g' index.html
- name: Brotli
uses: charlesworth/[email protected]
with:
target-directory: _site
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: b8e8d14919db944281dc12a849ed0c69
projectName: dn42-info
directory: _site
gitHubToken: ${{ secrets.GITHUB_TOKEN }}