Skip to content

Merge pull request #368 from cioos-siooc/migrate-cioos-form #134

Merge pull request #368 from cioos-siooc/migrate-cioos-form

Merge pull request #368 from cioos-siooc/migrate-cioos-form #134

name: Build and Deploy to Github pages
on:
push:
branches:
- main
paths-ignore:
- '**/.md'
permissions:
contents: write
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Set up Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install and Build 🔧
run: |
npm ci
npm run build
env:
REACT_APP_GOOGLE_CLOUD_API_KEY: ${{ secrets.REACT_APP_GOOGLE_CLOUD_API_KEY }}
REACT_APP_GOOGLE_CLOUD_API_KEY_DEV: ${{ secrets.REACT_APP_GOOGLE_CLOUD_API_KEY_DEV }}
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build
env:
REACT_APP_GOOGLE_CLOUD_API_KEY: ${{ secrets.REACT_APP_GOOGLE_CLOUD_API_KEY }}
REACT_APP_GOOGLE_CLOUD_API_KEY_DEV: ${{ secrets.REACT_APP_GOOGLE_CLOUD_API_KEY_DEV }}