diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..17c9ca1 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,28 @@ +name: Deploy to GitHub Pages + +on: + push: + branches: + - main + - master + +permissions: + contents: write + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install and Build + run: | + npm install + npm run build + + - name: Deploy + uses: JamesIves/github-pages-deploy-action@v4 + with: + folder: dist + branch: gh-pages diff --git a/vite.config.ts b/vite.config.ts new file mode 100644 index 0000000..ad08be1 --- /dev/null +++ b/vite.config.ts @@ -0,0 +1,5 @@ +import { defineConfig } from 'vite' + +export default defineConfig({ + base: '/website/', +})