diff options
| author | Lyssa | 2026-03-01 14:57:43 +0000 |
|---|---|---|
| committer | Lyssa | 2026-03-01 14:57:43 +0000 |
| commit | 2d158d5068610182abdbcfec5ed0177507175514 (patch) | |
| tree | 0beaa774875eea1c7fe34eb8a7f54e410adf5e0e | |
| parent | 851d769689ea17c31518a9b5204ed9203d75f4d1 (diff) | |
| download | massgrave.dev-2d158d5068610182abdbcfec5ed0177507175514.zip | |
feat(workflow): Cache Rspack output and other miscellaneous things
| -rw-r--r-- | .github/workflows/deploy.yml | 35 |
1 files changed, 29 insertions, 6 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c44054f..606fb51 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,22 +10,41 @@ jobs: build: name: Build Docusaurus runs-on: ubuntu-latest + + concurrency: + group: github-pages + cancel-in-progress: true + + permissions: + contents: read + steps: - - uses: actions/checkout@v4 + - uses: actions/[email protected] with: - fetch-depth: 0 - - uses: actions/setup-node@v4 + fetch-depth: 1 # We will need to switch this back to 0 if we ever need to use lastUpdated in Docusaurus + + - uses: actions/[email protected] with: - node-version: 20 + node-version: 24 cache: npm - name: Install dependencies run: npm ci + + - name: Cache Rspack output + uses: actions/[email protected] + with: + path: node_modules/.cache + key: rspack-${{ hashFiles('package-lock.json') }}-${{ github.sha }} + restore-keys: | + rspack-${{ hashFiles('package-lock.json') }}- + rspack- + - name: Build website run: npm run build - name: Upload Build Artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/[email protected] with: path: build @@ -33,6 +52,10 @@ jobs: name: Deploy to GitHub Pages needs: build + concurrency: + group: github-pages + cancel-in-progress: false # deploy-pages seems to not be fully atomic + permissions: pages: write id-token: write @@ -45,4 +68,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/[email protected] |
