Skip to content

feat: initialize project with SvelteKit, GitHub Actions deployment, a… #1

feat: initialize project with SvelteKit, GitHub Actions deployment, a…

feat: initialize project with SvelteKit, GitHub Actions deployment, a… #1

Workflow file for this run

name: Deploy Portfolio to GitHub Pages
on:
push:
branches:
- main
- master # Triggers on either branch naming convention
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Bun Environment
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Compile and build production bundle
run: bun run build
- name: Deploy to GitHub Pages branch
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist
branch: gh-pages
clean: true