Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static build #220

Merged
merged 22 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 0 additions & 94 deletions .eslintrc.json

This file was deleted.

10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ jobs:
with:
node-version: '${{ matrix.node-version }}'

- name: Build
run: |
npm install
npm run build

- name: Setup environment
run: gpg --quiet --batch --yes --decrypt --passphrase="$PASSPHRASE" --output calendar-service-account.json calendar-service-account.json.gpg
env:
Expand All @@ -40,6 +35,11 @@ jobs:
- name: Get events from Google API
run: npm run get-events

- name: Build
run: |
npm install
npm run build

- name: Add CNAME in dist folder
run: cp CNAME dist

Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
build:
strategy:
matrix:
node-version: [20.10.0]
node-version: [20.11.0]

runs-on: ubuntu-latest

Expand All @@ -21,8 +21,10 @@ jobs:
with:
node-version: '${{ matrix.node-version }}'

- name: Get events mock for PR build
run: npm run get-mock-events

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Run PR build with mock events to ensure the build is successful.

- name: Build
run: |
npm install
npm run test
npm run build
npm run pr-build
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ yarn-error.log*

# secrets
calendar-service-account.json

# gatsby files
.cache/
public
3 changes: 3 additions & 0 deletions gatsby-browser.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import './src/styles/App.css';
import './src/styles/Header.css';
import './src/styles/index.css';
15 changes: 15 additions & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.com/docs/reference/config-files/gatsby-config/
*/

/**
* @type {import('gatsby').GatsbyConfig}
*/
module.exports = {
siteMetadata: {
title: `FINOS Event Calendar`,
},
plugins: [],
};
17 changes: 0 additions & 17 deletions index.html

This file was deleted.

11,374 changes: 11,374 additions & 0 deletions mock/events.json

Large diffs are not rendered by default.

Loading
Loading