Skip to content

Commit

Permalink
Merge pull request #43 from CodeForPittsburgh/mc_gh_pages_action
Browse files Browse the repository at this point in the history
Add yaml file for deploying to Github pages
  • Loading branch information
maxachis authored Feb 5, 2024
2 parents a981a3f + 5e08c1b commit 20a91c4
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy_to_gh_pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
push:
branches:
- master
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest

steps:

- name: Checkout
uses: actions/checkout@v1

- name: Build
run: |
npm install
npm run-script build
env:
REACT_APP_SUPABASE_URL: ${{ secrets.REACT_APP_SUPABASE_URL }}
REACT_APP_SUPABASE_ANON_KEY: ${{ secrets.REACT_APP_SUPABASE_ANON_KEY }}

- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: build

0 comments on commit 20a91c4

Please sign in to comment.