Merge pull request #416 from elsoul/addArticle/ENASE2024 #73
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: skeet-doc | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'website/skeet-doc/**' | |
- '.github/workflows/website-skeet-doc.yml' | |
- 'package.json' | |
- 'firebase.json' | |
- '.firebaserc' | |
- 'pnpm-lock.yaml' | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
node-version: [20.11.0] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 9 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- id: auth | |
uses: google-github-actions/auth@v2 | |
with: | |
credentials_json: ${{ secrets.SKEET_GCP_SA_KEY }} | |
- name: Install firebase tools | |
run: pnpm i -g firebase-tools | |
- name: GitHub repository setting | |
run: git config --global url."https://github.com".insteadOf ssh://[email protected] | |
- name: Install dependencies | |
run: pnpm -F skeet-doc i | |
- name: Build App | |
run: pnpm -F skeet-doc build | |
env: | |
NODE_OPTIONS: --max-old-space-size=8192 | |
- name: Deploy to Firebase | |
run: firebase deploy --only hosting:skeet-doc | |
- name: Send sitemap | |
run: pnpm -F skeet-doc send:sitemap |