Compare commits

...

3 Commits

Author SHA1 Message Date
4440c1fc2b deploy for github actions added
Some checks failed
Deploy Vite app to GitHub Pages / build-and-deploy (push) Has been cancelled
2026-02-12 21:37:10 +01:00
9700f75d7c deploy for github actions added 2026-02-12 21:33:58 +01:00
d95ea2705b deploy for github actions added 2026-02-12 21:33:42 +01:00
2 changed files with 42 additions and 0 deletions

41
.github/workflows/deploy.yml vendored Normal file
View File

@@ -0,0 +1,41 @@
name: Deploy Vite app to GitHub Pages
on:
push:
branches:
- main
permissions:
contents: read
pages: write
id-token: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 24
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './dist'
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4

View File

@@ -4,4 +4,5 @@ import react from '@vitejs/plugin-react'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
base: '/harmonica-tabs-image-app/',
})