This version of Antigravity is no longer supported. Please update to … #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Deploy to GitHub Pages | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| reason: | |
| description: "Reason for deployment" | |
| required: true | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "frontend/**" | |
| permissions: | |
| contents: write | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4.2.2 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4.1.0 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| - name: Install Dependencies | |
| run: npm i --legacy-peer-deps | |
| - name: Build Admin Panel | |
| run: npx nx build admin-panel --prod --base-href /mavluda-beauty/ | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v4.0.0 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./frontend/dist/ | |
| publish_branch: gh-pages |