Skip to content

Commit 50d513a

Browse files
authored
Static build (#220)
2 parents 00b2659 + 997e775 commit 50d513a

22 files changed

+26404
-4903
lines changed

.eslintrc.json

-94
This file was deleted.

.github/workflows/build.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ jobs:
2424
with:
2525
node-version: '${{ matrix.node-version }}'
2626

27-
- name: Build
28-
run: |
29-
npm install
30-
npm run build
31-
3227
- name: Setup environment
3328
run: gpg --quiet --batch --yes --decrypt --passphrase="$PASSPHRASE" --output calendar-service-account.json calendar-service-account.json.gpg
3429
env:
@@ -40,6 +35,11 @@ jobs:
4035
- name: Get events from Google API
4136
run: npm run get-events
4237

38+
- name: Build
39+
run: |
40+
npm install
41+
npm run build
42+
4343
- name: Add CNAME in dist folder
4444
run: cp CNAME dist
4545

.github/workflows/pr-build.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
build:
1010
strategy:
1111
matrix:
12-
node-version: [20.10.0]
12+
node-version: [20.11.0]
1313

1414
runs-on: ubuntu-latest
1515

@@ -21,8 +21,10 @@ jobs:
2121
with:
2222
node-version: '${{ matrix.node-version }}'
2323

24+
- name: Get events mock for PR build
25+
run: npm run get-mock-events
26+
2427
- name: Build
2528
run: |
2629
npm install
27-
npm run test
28-
npm run build
30+
npm run pr-build

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,7 @@ yarn-error.log*
2929

3030
# secrets
3131
calendar-service-account.json
32+
33+
# gatsby files
34+
.cache/
35+
public

gatsby-browser.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import './src/styles/App.css';
2+
import './src/styles/Header.css';
3+
import './src/styles/index.css';

gatsby-config.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* Configure your Gatsby site with this file.
3+
*
4+
* See: https://www.gatsbyjs.com/docs/reference/config-files/gatsby-config/
5+
*/
6+
7+
/**
8+
* @type {import('gatsby').GatsbyConfig}
9+
*/
10+
module.exports = {
11+
siteMetadata: {
12+
title: `FINOS Event Calendar`,
13+
},
14+
plugins: [],
15+
};

index.html

-17
This file was deleted.

mock/events.json

+11,374
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)