Only parse JSON when content-type is set to JSON #265
This file contains 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: Build/Deploy Documentation | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-deploy-docs: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
fetch-tags: true | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 9 | |
- name: Use Node.JS | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 22.x | |
cache: "pnpm" | |
cache-dependency-path: | | |
SpotifyAPI.Docs/pnpm-lock.yaml | |
- name: Setup GitHub Deploy SSH Key | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.GH_DEPLOY_SSH_KEY }} | |
- name: Build & Deploy Documentation | |
run: ./SpotifyAPI.Docs/docs.sh |