A simple Svelte "Hello World" application deployed to GitHub Pages using GitHub Actions.
Once deployed, the site will be available at: https://jamesvo.github.io
- ⚡️ Svelte + Vite for fast development
- 🎨 Beautiful gradient background with animations
- 📱 Responsive design
- 🚀 Automated deployment with GitHub Actions
- 🌐 Hosted on GitHub Pages
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser to
http://localhost:5173
To build the app for production:
npm run build
The built files will be in the dist
directory.
- Go to your repository settings
- Navigate to "Pages" section
- Under "Build and deployment", select "GitHub Actions" as the source
The project includes a GitHub Actions workflow (.github/workflows/deploy.yml
) that:
- Triggers on every push to the
main
branch - Builds the Svelte application
- Deploys it to GitHub Pages
You can also trigger the deployment manually:
- Go to the "Actions" tab in your repository
- Select "Deploy to GitHub Pages" workflow
- Click "Run workflow"
.
├── .github/
│ └── workflows/
│ └── deploy.yml # GitHub Actions workflow
├── src/
│ ├── App.svelte # Main Svelte component
│ └── main.js # App entry point
├── index.html # HTML template
├── package.json # Dependencies and scripts
├── vite.config.js # Vite configuration
├── .gitignore # Git ignore file
└── README.md # This file
- Svelte - Cybernetically enhanced web apps
- Vite - Next generation frontend tooling
- GitHub Pages - Static site hosting
- GitHub Actions - CI/CD automation
This project is open source and available under the MIT License.