Skip to content

Add image with caption include #38

Add image with caption include

Add image with caption include #38

# Use a GitHub action to deploy to Cloudflare Pages using Direct Upload
name: Deploy to Cloudflare Pages
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Build and deploy
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
working-directory: ./src
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Build Jekyll website
working-directory: ./src
run: bundle exec jekyll build
- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_PAGES_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy ./src/_site --project-name=febog # Directory of output assets
gitHubToken: ${{ secrets.GITHUB_TOKEN }}