2020-11-14 08:40:07 +00:00
|
|
|
name: Build/Deploy Documentation
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2020-11-14 10:05:30 +00:00
|
|
|
branches:
|
|
|
|
- master
|
2020-11-14 08:40:07 +00:00
|
|
|
|
|
|
|
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
|
2020-11-14 08:40:07 +00:00
|
|
|
- name: Use Node.JS
|
2023-11-03 22:36:08 +00:00
|
|
|
uses: actions/setup-node@v3
|
2020-11-14 08:40:07 +00:00
|
|
|
with:
|
2023-11-03 22:31:40 +00:00
|
|
|
node-version: v20.9.0
|
|
|
|
cache: "pnpm"
|
2023-11-03 22:39:14 +00:00
|
|
|
cache-dependency-path: |
|
|
|
|
SpotifyAPI.Docs/pnpm-lock.yaml
|
2020-11-14 10:14:24 +00:00
|
|
|
- name: Setup GitHub Deploy SSH Key
|
|
|
|
uses: webfactory/ssh-agent@v0.4.1
|
|
|
|
with:
|
|
|
|
ssh-private-key: ${{ secrets.GH_DEPLOY_SSH_KEY }}
|
2020-11-14 08:40:07 +00:00
|
|
|
- name: Build & Deploy Documentation
|
|
|
|
run: ./SpotifyAPI.Docs/docs.sh
|