Skip to content

Commit

Permalink
Merge branch 'main' into calendar-signup-form
Browse files Browse the repository at this point in the history
  • Loading branch information
robmoffat committed Jan 23, 2025
2 parents 35fbdcb + 2a9313a commit 477b5c1
Show file tree
Hide file tree
Showing 6 changed files with 3,212 additions and 19,352 deletions.
30 changes: 8 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
branches:
- main
schedule:
- cron: '0 */3 * * *'
- cron: "0 */3 * * *"

jobs:
build:
Expand All @@ -22,30 +22,16 @@ jobs:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: '${{ matrix.node-version }}'

- name: Setup environment
run: gpg --quiet --batch --yes --decrypt --passphrase="$PASSPHRASE" --output calendar-service-account.json calendar-service-account.json.gpg
env:
PASSPHRASE: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_PASSPHRASE }}

- name: Download basic.ics file
run: curl -o dist/basic.ics https://calendar.google.com/calendar/ical/finos.org_fac8mo1rfc6ehscg0d80fi8jig%40group.calendar.google.com/public/basic.ics

- name: Get events from Google API
run: npm run get-events
node-version: "${{ matrix.node-version }}"

- name: Build
run: |
npm install
npm run build
env:
GOOGLE_SERVICE_ACCOUNT_PASSPHRASE: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_PASSPHRASE }}

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

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.ACCESS_TOKEN }}
publish_dir: dist
if: github.event_name != 'pull_request'
- name: Trigger Netlify Build
run: |
curl -X POST -d {} https://api.netlify.com/build_hooks/676564b824c64e75ebf22bcd
4 changes: 2 additions & 2 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 @@ -27,4 +27,4 @@ jobs:
- name: Build
run: |
npm install
npm run build
npm run pr-build
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

6 changes: 5 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
[build]
edge_functions = "edge-functions"
edge_functions = "edge-functions"
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "ALLOW-FROM https://finos.org"
Loading

0 comments on commit 477b5c1

Please sign in to comment.