Skip to content

Merge pull request #6 from CinCoders/feature/title-adjustments #29

Merge pull request #6 from CinCoders/feature/title-adjustments

Merge pull request #6 from CinCoders/feature/title-adjustments #29

Workflow file for this run

name: Build and Deploy to Github Pages
on:
push:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies and run build
run: |
npm ci
npm run build
env:
REACT_APP_SHEET_ID: ${{ vars.REACT_APP_SHEET_ID }}
REACT_APP_SHEET_NAME: ${{ vars.REACT_APP_SHEET_NAME }}
- name: Upload Artifact
uses: actions/upload-pages-artifact@v1
with:
name: github-pages
path: ./build
deploy:
name: Deploy
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2