| | |
| | | runs-on: ubuntu-latest |
| | | name: Build Preview |
| | | steps: |
| | | - uses: actions/checkout@v4 |
| | | - uses: actions/checkout@v6 |
| | | with: |
| | | fetch-depth: 0 |
| | | |
| | | - name: Setup Node |
| | | uses: actions/setup-node@v4 |
| | | uses: actions/setup-node@v6 |
| | | with: |
| | | node-version: 22 |
| | | |
| | | - name: Cache dependencies |
| | | uses: actions/cache@v4 |
| | | uses: actions/cache@v5 |
| | | with: |
| | | path: ~/.npm |
| | | key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} |
| | |
| | | run: npx quartz build -d docs -v |
| | | |
| | | - name: Upload build artifact |
| | | uses: actions/upload-artifact@v4 |
| | | uses: actions/upload-artifact@v6 |
| | | with: |
| | | name: preview-build |
| | | path: public |