Skip to content

Update README.md

Update README.md #867

Workflow file for this run

name: Build
on:
workflow_dispatch:
push:
# TODO - uncomment when merging to main branch (!!)
# branches:
# - main
schedule:
- cron: "0 */3 * * *"
jobs:
build:
strategy:
matrix:
node-version: [20.10.0]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
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:
PASSPHRASE: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_PASSPHRASE }}
- name: Get events from Google API
run: npm run getEvents
- name: Add CNAME in dist folder
run: cp CNAME dist
# Disable to avoid risking to influence the live environement (even though it should not)
# TODO - re-enable when merging to main branch (!!)
# - name: Deploy to GitHub Pages
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.ACCESS_TOKEN }}
# publish_dir: dist