Skip to content

Trying to deploy the website directly. #1

Trying to deploy the website directly.

Trying to deploy the website directly. #1

Workflow file for this run

name: Deploy Svelte Website to GitHub Pages
on:
push:
branches:
- main # Trigger deployment on push to the main branch
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install dependencies
run: npm install
- name: Build the Svelte app
run: npm run build
- name: Deploy to GitHub Pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run deploy