Skip to content

Commit 41669e9

Browse files
committed
Move to automatic site publishing
1 parent b5bae47 commit 41669e9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+3783
-85
lines changed

.github/.workflows/publish.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: publish-site-to-pages
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
permissions:
8+
content: read
9+
pages: write
10+
id-token: write
11+
12+
concurrency:
13+
group: pages
14+
cancel-in-progress: false
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Checkout 🛎️
22+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
23+
24+
- name: Setup Node.js ⚙️
25+
uses: ./github/workflows/setup-node
26+
27+
- name: Configure pages 📃
28+
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b #v5.0.0
29+
with:
30+
static_site_generator: next
31+
32+
- name: Build Next 🔨
33+
run: npx next build
34+
35+
- name: Upload artifact
36+
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa #v3.0.1
37+
with:
38+
path: ./out
39+
40+
41+
deploy:
42+
environment:
43+
name: github-pages
44+
url: ${{ steps.deployment.outputs.page_url }}
45+
46+
runs-on: ubuntu-latest
47+
needs: build
48+
49+
steps:
50+
- name: Publish to GitHub Pages 🚀
51+
id: deployment
52+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e #v4.0.5
53+
54+
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: setup-node
2+
description: Setup Node.js ⚙️
3+
runs:
4+
using: composite
5+
steps:
6+
- name: Setup Node.js ⚙️
7+
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af #v4.1.0
8+
with:
9+
node-version: 20
10+
11+
- name: Cache deps 📦
12+
id: cache_dependencies
13+
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a #v4.1.2
14+
with:
15+
path: node_modules
16+
key: node-modules-${{ hashFiles('package-lock.json') }}
17+
18+
- name: Install dependencies 🛠️
19+
shell: bash
20+
if: steps.cache_dependencies.outputs.cache-hit != 'true'
21+
run: npm ci
22+

.gitignore

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
.env*
21+
22+
# debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*

.nojekyll

Whitespace-only changes.

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18

404.html

-1
This file was deleted.

BLOG-IDEAS.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Blog Ideas
2+
3+
- Building a site with technology I don't use
4+
- Setting up Terraform backend with R2

CNAME

-1
This file was deleted.

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This is a starter template for [Learn Next.js](https://nextjs.org/learn).

_next/static/chunks/130-d135f681ae834166.js

-1
This file was deleted.

_next/static/chunks/23-f110ce0b3c8b5899.js

-2
This file was deleted.

_next/static/chunks/app/_not-found/page-1fe41d8df168b155.js

-1
This file was deleted.

_next/static/chunks/app/blog/page-1342e5312b48ec7a.js

-1
This file was deleted.

_next/static/chunks/app/layout-d50ef160d2908524.js

-1
This file was deleted.

_next/static/chunks/app/page-1fa1fe2637106206.js

-1
This file was deleted.

0 commit comments

Comments
 (0)