From e955d9b94dda9fd387acda10d89777f8ecd1f665 Mon Sep 17 00:00:00 2001 From: quirinecker Date: Fri, 24 Oct 2025 18:29:36 +0200 Subject: [PATCH] added gh actions for deploying to gh pages --- .github/workflows/main.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..7fd073e --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,30 @@ +name: Deploy to GitHub Pages + +on: + push: + branches: ["main"] # Replace with your default branch if different + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: "lts/*" # Uses the latest LTS version + + - name: Install dependencies + run: npm install + + - name: Build + run: npx vite build + + - name: Move dist to public + run: | + rm -rf public + mv dist public + + - name: Deploy to GitHub Pages + uses: actions/deploy-pages@v3