feat(docs): add cuhacking google calendar #414
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: '*' | |
pull_request: | |
branches: '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20] | |
steps: | |
- name: ποΈ Checkout Code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 # Shallow clone (only take latest commit) | |
- name: π¦ Install pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: π§Ή Lint Projects | |
run: pnpm i; pnpm nx run-many -t lint -p docs docs-e2e website website-e2e portal portal-e2e --verbose | |
- name: π Install Playwright Browsers | |
run: pnpm playwright install --with-deps | |
- name: π Build Docs | |
env: | |
GOOGLE_CALENDAR_ID: ${{ secrets.GOOGLE_CALENDAR_ID }} | |
GOOGLE_CALENDAR_SECRET: ${{ secrets.GOOGLE_CALENDAR_SECRET }} | |
run: pnpm nx build docs --verbose | |
- name: π Build Website | |
run: pnpm nx build website --verbose | |
- name: π Build Portal | |
env: | |
DATABASE_URL: ${{ secrets.DATABASE_URL }} | |
AUTH_SECRET: ${{ secrets.AUTH_SECRET }} | |
GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }} | |
GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }} | |
run: pnpm nx build portal --verbose | |
- name: π° Profit | |
run: echo π |