Spotify.NET/.github/workflows/docs.yaml

30 lines
717 B
YAML
Raw Normal View History

name: Build/Deploy Documentation
on:
push:
branches:
- master
jobs:
build-deploy-docs:
runs-on: ubuntu-20.04
steps:
- name: Checkout
2023-11-03 22:36:08 +00:00
uses: actions/checkout@v4
2023-11-03 22:37:11 +00:00
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.JS
2023-11-03 22:36:08 +00:00
uses: actions/setup-node@v3
with:
node-version: v20.9.0
cache: "pnpm"
cache-dependency-path: |
SpotifyAPI.Docs/pnpm-lock.yaml
- name: Setup GitHub Deploy SSH Key
uses: webfactory/ssh-agent@v0.4.1
with:
ssh-private-key: ${{ secrets.GH_DEPLOY_SSH_KEY }}
- name: Build & Deploy Documentation
run: ./SpotifyAPI.Docs/docs.sh