Update .github/workflows/deploy.yml
Build Quartz site / build (push) Has been cancelled Details

This commit is contained in:
Peaceultime 2023-12-14 23:31:48 +00:00
parent ace62c372e
commit 59fec1cb99
1 changed files with 25 additions and 1 deletions

View File

@ -22,6 +22,25 @@ jobs:
github-server-url: 'https://github.com'
token: ${{ secrets.GH_PAT }}
- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
name: List the state of node modules
continue-on-error: true
run: npm list
- name: "Checkout"
uses: actions/checkout@v3
with:
@ -39,4 +58,9 @@ jobs:
- name: Build Quartz
run: npx quartz build
working-directory: ./quartz
working-directory: ./quartz
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./quartz/public