Configure base URL and GitHub Actions workflow for Pages deployment

This commit is contained in:
Eivind Røsstad Skeie 2026-06-29 12:27:25 +02:00
parent 0f41af3744
commit 25dcdeba15
4 changed files with 62 additions and 4 deletions

51
.github/workflows/deploy.yml vendored Normal file
View file

@ -0,0 +1,51 @@
name: Deploy to GitHub Pages
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: 'pages'
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./dist
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

View file

@ -1,11 +1,12 @@
<div align="center">
<img width="1200" height="475" alt="GHBanner" src="https://github.com/user-attachments/assets/0aa67016-6eaf-458a-adb2-6e31a0763ed6" />
<img width="1200" height="475" alt="GHBanner" src="https://ai.google.dev/static/site-assets/images/share-ais-513315318.png" />
</div>
# Run and deploy your AI Studio app
This contains everything you need to run your app locally.
https://ai.studio/apps/cb46be2f-ccc9-4306-a691-830141498fbb
View your app in AI Studio: https://ai.studio/apps/cb46be2f-ccc9-4306-a691-830141498fbb
## Run Locally
@ -16,4 +17,4 @@ https://ai.studio/apps/cb46be2f-ccc9-4306-a691-830141498fbb
`npm install`
2. Set the `GEMINI_API_KEY` in [.env.local](.env.local) to your Gemini API key
3. Run the app:
`npm run dev`
`npm run dev`

View file

@ -1 +1,6 @@
{"name":"Til Mika","description":"Et romantisk, interaktivt polaroid-galleri med svevende minner.","requestFramePermissions":[],"majorCapabilities":["MAJOR_CAPABILITY_SERVER_SIDE_GEMINI_API"]}
{
"name": "Til Mika",
"description": "Et romantisk, interaktivt polaroid-galleri med svevende minner.",
"requestFramePermissions": [],
"majorCapabilities": ["MAJOR_CAPABILITY_SERVER_SIDE_GEMINI_API"]
}

View file

@ -5,6 +5,7 @@ import {defineConfig} from 'vite';
export default defineConfig(() => {
return {
base: '/Til-Mika/',
plugins: [react(), tailwindcss()],
resolve: {
alias: {