Update README.md #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |