Skip to content

Commit

Permalink
Merge pull request #8 from theinternetcafe/cloudflare-pages-workflow
Browse files Browse the repository at this point in the history
add workflow for cloudflare pages
  • Loading branch information
tzakrajs authored May 24, 2024
2 parents f4cad5a + 366b630 commit f638e3d
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/cloudflare-pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build and Deploy to Cloudflare Pages

on:
push:
branches:
- main

jobs:
build_and_deploy:
runs-on: ubuntu-latest

steps:
# Setup Bun
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest

# Checkout the repository
- name: Checkout Repository
uses: actions/checkout@v4

# Install dependencies
- name: Install Dependencies
run: bun install

# Build the site
- name: Build Site
run: bunx @11ty/eleventy

# Deploy to Cloudflare Pages
- name: Deploy to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ed683f29f555e6466caa39a27c381a1f
projectName: net-cafe
directory: _site


0 comments on commit f638e3d

Please sign in to comment.