Skip to content

Merge pull request #23 from SunbirdAI/github-actions #3

Merge pull request #23 from SunbirdAI/github-actions

Merge pull request #23 from SunbirdAI/github-actions #3

Workflow file for this run

name: Build-and-Deploy
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Packages
run: npm i
- name: Build
env:
REACT_APP_SB_API_URL: ${{ secrets.REACT_APP_API_URL }}
REACT_APP_SB_API_TOKEN: ${{ secrets.REACT_APP_API_TOKEN }}
REACT_APP_GA4_TRACKING_ID: ${{ secrets.REACT_APP_GA4_TRACKING_ID }}
REACT_APP_GA4_MEASUREMENT_ID: ${{ secrets.REACT_APP_GA4_MEASUREMENT_ID }}
REACT_APP_FEEDBACK_URL: $ {{ secrets.REACT_APP_FEEDBACK_URL }}
run: CI=false npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: build