Skip to content

Commit

Permalink
Merge pull request #8 from UpstateWomenInSoftwareEngineering/kara/fix…
Browse files Browse the repository at this point in the history
…-gh-env-var

Fix env var and fix GH Pages landing page
  • Loading branch information
JenBauer authored Oct 31, 2024
2 parents 5cb8ced + 3b8a8b2 commit 94919e0
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 22 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18.17.0'

- name: Install dependencies
run: npm install

- name: Build frontend
run: npm run build
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

# Deploy to GitHub Pages
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/frontend # This is the directory with the static files to deploy
17 changes: 0 additions & 17 deletions .github/workflows/setEnv.yml

This file was deleted.

9 changes: 4 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
version: '3'
services:
backend:
build:
context: .
dockerfile: Dockerfile
environment:
- OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}
ports:
- "4013:4013"

env_file:
- .env

frontend:
build:
context: ./frontend
context: ./docs/frontend
dockerfile: Dockerfile
ports:
- "8080:80"
File renamed without changes.
File renamed without changes.

0 comments on commit 94919e0

Please sign in to comment.