diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..c767e5a --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,24 @@ +name: Deploy to GitHub Pages + +on: + push: + branches: + - main # Change this to your main branch name + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Install dependencies and build + run: | + npm install + cd server && npm run build + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./client/dist # Change this to your build output directory