Skip to content

make github pages aware of env variable #2

make github pages aware of env variable

make github pages aware of env variable #2

Workflow file for this run

# Copied from https://github.com/josecelano/svelte-deploy-with-github-actions/blob/master/.github/workflows/deploy.yml
# Another reference: https://github.com/mit-dormcon/website/blob/main/.github/workflows/deploy.yml
name: Deploy to GitHub Pages
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install and Build
run: |
npm install
npm run build
env:
PUBLIC_MOIRA_API: "https://moira-api.mit.edu"
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
branch: gh-pages
folder: public