Skip to content

fix: eslint error (#300) #283

fix: eslint error (#300)

fix: eslint error (#300) #283

name: CI/CD
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.9.0]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Nodejs
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Set env var
run: |
cp .env.template .env
sed -i "s/API_KEY_HERE/${{ secrets.API_KEY }}/g" .env
sed -i "s/PROJECT_ID_HERE/${{ secrets.PROJECT_ID }}/g" .env
sed -i "s/MESSAGING_SENDER_ID_HERE/${{ secrets.MESSAGING_SENDER_ID }}/g" .env
sed -i "s/APP_ID_HERE/${{ secrets.APP_ID }}/g" .env
sed -i "s/MEASUREMENT_ID_HERE/${{ secrets.MEASUREMENT_ID }}/g" .env
- name: Build
run: |
npm ci
npm run build
touch out/.nojekyll
- name: Deploy
uses: JamesIves/[email protected]
with:
github_token: ${{ secrets.ACTIONS_DEPLOY_ACCESS_TOKEN }}
branch: gh-pages
folder: out