Skip to content

Commit

Permalink
make github action for the thing
Browse files Browse the repository at this point in the history
  • Loading branch information
drinklilt committed Apr 17, 2024
1 parent 1538f0f commit fb2bf92
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/main.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: a8a36534044486b6a07ecdf1a69272e3
projectName: themorningstardotdev
directory: www


2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# my websi te
I made it from scratch using [eleventy](https://www.11ty.dev/) :)
I made it from scratch using [eleventy](https://www.11ty.dev/) and github actions to send it to [cloudflare pages](https://pages.cloudflare.com/) :)
Also I use [bun](https://bun.sh/) to run it because I am [special](https://en.wikipedia.org/wiki/Autism_spectrum)

0 comments on commit fb2bf92

Please sign in to comment.