Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 25 additions & 13 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
name: Deploy static docs to Pages

on:
release:
types: [published]
push:
branches: [master]
# Allows you to run this workflow manually from the Actions tab.
workflow_dispatch:

Expand Down Expand Up @@ -38,17 +38,29 @@ jobs:
with:
node-version: 22

- name: npm ci
run: npm ci --foreground-scripts
- name: Check if version has been updated
id: check
uses: EndBug/version-check@v2

- name: npm run docs
run: npm run docs
- name: Log when version has changed
if: steps.check.outputs.changed == 'true'
run: 'echo "Version change found in commit ${{ steps.check.outputs.commit }}! New version: ${{ steps.check.outputs.version }} (${{ steps.check.outputs.type }})"'

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/
- name: Log when version has not changed
if: steps.check.outputs.changed == 'false'
run: 'echo "No version change"'

# - name: npm ci
# run: npm ci --foreground-scripts

# - name: npm run docs
# run: npm run docs

# - name: Upload artifact
# uses: actions/upload-pages-artifact@v3
# with:
# path: docs/

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v4