Skip to content

v9.2.0

v9.2.0 #20

Workflow file for this run

name: Update gh-pages
on:
release:
types: [released]
jobs:
build_docs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Cache Node.js modules 💾
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install dependencies ⏬
run: npm install
- name: Generate documentation 🏗️
run: npm run generate-docs
- name: Get geostyler version
run: |
echo "VERSION=$(node -pe "require('./package.json').version")" >> $GITHUB_ENV
- name: Deploy (to docs/v${{ env.VERSION }}) 🚀
uses: JamesIves/github-pages-deploy-action@v4.6.1
with:
branch: gh-pages
folder: docs
target-folder: docs/v${{ env.VERSION }}
- name: Deploy (to docs/latest) 🚀
uses: JamesIves/github-pages-deploy-action@v4.6.1
with:
branch: gh-pages
folder: docs
target-folder: docs/latest