Merge pull request #1192 from itsneufox/neufox(feat)-download-pages #630
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: Deploy Frontend | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| deploy: | |
| name: Deploy frontend | |
| runs-on: macos-latest | |
| steps: | |
| - name: Cancel previous runs | |
| uses: styfle/cancel-workflow-action@0.12.1 | |
| with: | |
| workflow_id: 42688838 | |
| access_token: ${{ github.token }} | |
| - uses: actions/checkout@v4 | |
| - name: Cache ~/.npm for npm ci | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: ${{ runner.os }}-node | |
| - uses: AmyrAhmady/omp-web-cache@v1.0 | |
| - name: Build frontend | |
| run: | | |
| cd frontend | |
| npm i | |
| DOCUSAURUS_IGNORE_SSG_WARNINGS=true npm run build | |
| - name: Deploy 🚀 | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| folder: frontend/build | |
| single-commit: true |