Skip to content

Commit 3326c45

Browse files
committed
migrating from netlify to GitHub pages. AI assisted
1 parent 72a8333 commit 3326c45

5 files changed

Lines changed: 49 additions & 251 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- uses: actions/setup-node@v4
24+
with:
25+
node-version: 18
26+
cache: npm
27+
28+
- run: npm ci
29+
30+
# No --prefix-paths: the site is served at the root of
31+
# bavd.unlockingtheairwaves.org, not under a project path.
32+
- run: npm run build
33+
34+
- uses: actions/upload-pages-artifact@v3
35+
with:
36+
path: public
37+
38+
deploy:
39+
needs: build
40+
runs-on: ubuntu-latest
41+
environment:
42+
name: github-pages
43+
url: ${{ steps.deployment.outputs.page_url }}
44+
steps:
45+
- id: deployment
46+
uses: actions/deploy-pages@v4

gatsby-config.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
/** @type {import('gatsby').GatsbyConfig} */
22
const path = require("path")
3-
const basePath = '/broadcasting'
43

54
module.exports = {
6-
pathPrefix: basePath,
7-
assetPrefix: "",
85
siteMetadata: {
96
title: "Broadcasting A/V Data",
107
description:
118
"Description.",
129
author: `Maryland Institute for Technology in the Humanities`,
13-
siteUrl: `https://broadcasting.unlockingtheairwaves.org`,
10+
siteUrl: `https://bavd.unlockingtheairwaves.org`,
1411
twitter: `https://twitter.com/umd_mith`,
1512
siteNav: [
1613
{

package-lock.json

Lines changed: 0 additions & 244 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
"serve": "gatsby serve",
1717
"clean": "gatsby clean",
1818
"typecheck": "tsc --noEmit",
19-
"persist": "ts-node src/commands/persist.ts",
20-
"deploy": "gatsby build --prefix-paths && gh-pages -d public -b gh-pages"
19+
"persist": "ts-node src/commands/persist.ts"
2120
},
2221
"dependencies": {
2322
"@fontsource/open-sans": "^4.5.5",
@@ -49,7 +48,6 @@
4948
"@types/react-helmet": "^6.1.5",
5049
"airtable": "^0.11.2",
5150
"cheerio": "^1.0.0-rc.12",
52-
"gh-pages": "^3.2.3",
5351
"json2csv": "^5.0.7",
5452
"node-fetch": "^2.6.7",
5553
"ts-node": "^10.6.0",

static/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bavd.unlockingtheairwaves.org

0 commit comments

Comments
 (0)