diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..34b83811 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,40 @@ +name: Deploy to GitHub Pages + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version-file: ".nvmrc" + + - name: Setup pnpm + uses: pnpm/action-setup@v2 + with: + version: latest + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Build + run: pnpm build + env: + NODE_ENV: production + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + if: github.ref == 'refs/heads/main' + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./packages/app/dist \ No newline at end of file diff --git a/packages/app/404.html b/packages/app/404.html new file mode 100644 index 00000000..59a7be40 --- /dev/null +++ b/packages/app/404.html @@ -0,0 +1,18 @@ + \ No newline at end of file diff --git a/packages/app/index.html b/packages/app/index.html index 7e663448..395f12c8 100644 --- a/packages/app/index.html +++ b/packages/app/index.html @@ -1,26 +1,44 @@ -
- - -