diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..4e55675 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,30 @@ +name: Deploy Test to GitHub Pages + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: "18" + + - name: Install dependencies + run: npm install + + - name: Build project + run: npm run build + + - name: Deploy Test to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./build diff --git a/emotion-notes-app/package.json b/emotion-notes-app/package.json index 47d2dae..8dc460d 100644 --- a/emotion-notes-app/package.json +++ b/emotion-notes-app/package.json @@ -24,5 +24,6 @@ "eslint-plugin-react-refresh": "^0.4.20", "globals": "^16.3.0", "vite": "^7.0.4" - } + }, + "homepage": "https://Pracrobo.github.io/react-app" }