-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
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
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 | ||
|
||
|
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
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) ✨ |