Skip to content

Merge pull request #64 from Solar-Gators/cleanup #61

Merge pull request #64 from Solar-Gators/cleanup

Merge pull request #64 from Solar-Gators/cleanup #61

Workflow file for this run

name: github pages deployment
on:
push:
branches:
- master
defaults:
run:
working-directory: client
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '16'
- run: cd ../ && npm ci
- run: npm ci
- run: npm run build
env:
REACT_APP_TELEMETRY_API: https://telemetry-api.ufsolargators.org
REACT_APP_GOOGLE_MAPS_KEY: "${{ vars.REACT_APP_GOOGLE_MAPS_KEY }}"
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: './client/build'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1