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

This commit is contained in:
2023-12-14 23:31:48 +00:00
parent ace62c372e
commit 59fec1cb99

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:
@@ -40,3 +59,8 @@ jobs:
- name: Build Quartz
run: npx quartz build
working-directory: ./quartz
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./quartz/public