Skip to content

Commit

Permalink
Update docs properly
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaunLawrie committed Mar 20, 2024
1 parent 4f892fa commit dffef73
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,29 @@ on:
branches:
- main

permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
if: github.repository_owner == 'ShaunLawrie'
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build Docs
shell: pwsh
run: |
$ErrorActionPreference = "Stop"
$docsProjectRoot = "./PwshSpectreConsole.Docs"
npm ci --prefix $docsProjectRoot
if ($LASTEXITCODE -ne 0) {
throw "Failed to install npm dependencies"
}
npm run build --prefix $docsProjectRoot
if ($LASTEXITCODE -ne 0) {
throw "Failed to run npm build"
}
- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
Expand Down

0 comments on commit dffef73

Please sign in to comment.