Skip to content

Commit

Permalink
allow pages
Browse files Browse the repository at this point in the history
  • Loading branch information
aeltorio committed Oct 21, 2024
1 parent 5b02b86 commit 4b7b3ca
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 4 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/ghpages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: GHRelease

on:
push:
branches:
- main
release:
types: [published]

permissions:
contents: write
pages: write
id-token: write
packages: write
attestations: write

jobs:
build:
runs-on: ubuntu-latest

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

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"

- name: Install dependencies
run: npm install

- name: Build project
run: |
GROQ_API_KEY=${{ secrets.GROQ_API_KEY }} npm run getGroqModels
npm run build:github-pages
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload docs directory
path: "dist"

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# AI Outlook Add-in

This project is an add-in for Microsoft Outlook web that integrates Groq AI or Sambanova AI and Meta Llama model capabilities into your email experience. It allows users to leverage the power of Groq's AI in their daily email interactions.
Welcome to the AI Outlook Add-in, a powerful tool that integrates Groq AI and Sambanova AI capabilities into Microsoft Outlook web, enhancing your email experience. This project aims to provide users with AI-powered assistance in their daily email interactions, making email management more efficient and productive.

## Star the project

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
},
"scripts": {
"build": "npm run getGroqModels && npx webpack --mode production",
"build:github-pages": "npm run getGroqModels && npx webpack --env website=GITHUB_PAGES --mode production",
"build:dev": "webpack --mode development",
"dev-server": "webpack serve --mode development",
"getGroqModels": "node --import 'data:text/javascript,import { register } from \"node:module\"; import { pathToFileURL } from \"node:url\"; register(\"ts-node/esm\", pathToFileURL(\"./\"));' ./utils/initModels.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/version.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"commit": "6045ac270f9c53c8f5ab3d77503a53e9a1ea7548",
"date": "2024-10-19 09:25:34 +0200"
"commit": "5b02b869d19f435711be5d9fb25595a3b69c41b8",
"date": "2024-10-19 11:28:30 +0200"
}
4 changes: 3 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import path from "path";
import { simpleGit } from "simple-git";

const urlDev = "https://localhost:3000/";
const urlProd = "https://outlook.addin.pp.ua/"; // CHANGE THIS TO YOUR PRODUCTION DEPLOYMENT LOCATION

async function generateVersionFile() {
const git = simpleGit();
Expand All @@ -32,6 +31,9 @@ async function getHttpsOptions() {

export default async (env, options) => {
const dev = options.mode === "development";
const urlProd =
env.website === "GITHUB_PAGES" ? "https://sctg-development.github.io/ai-outlook/" : "https://outlook.addin.pp.ua/"; // CHANGE THIS TO YOUR PRODUCTION DEPLOYMENT LOCATION

const config = {
devtool: "source-map",
entry: {
Expand Down

0 comments on commit 4b7b3ca

Please sign in to comment.