diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 4aadc46..9381aee 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -14,12 +14,20 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - name: Install and Build - run: | - npm install - npm run build + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: '16' + + - name: Install dependencies + run: npm install + + - name: Build + run: npm run build - - name: Deploy - uses: JamesIves/github-pages-deploy-action@v4 + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 with: - folder: dist + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./dist + publish_branch: gh-pages diff --git a/vite.config.js b/vite.config.js index 9493dbe..2161421 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,5 +1,5 @@ export default { - base: '/wams/', + base: '/warms/', server: { host: '0.0.0.0', },