Skip to content

v24.0.0-main.8

v24.0.0-main.8 #98

Workflow file for this run

name: Update gh-pages
on:
release:
types: [created]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources 🔰
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Setup Node.js 👷🏻
uses: actions/setup-node@v3
with:
node-version: 20
- name: Cache Node.js modules 💾
uses: actions/cache@v3
with:
path: ~/.npm
key: "${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}"
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install dependencies ⏬
run: npm ci
- name: Build styleguide 🏗️
run: npm run build:styleguide
- name: Get react-geo version
run: |
echo "VERSION=$(node -pe "require('./package.json').version")" >> $GITHUB_ENV
- name: Deploy (to docs/v${{ env.VERSION }}) 🚀
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: build/styleguide
TARGET_FOLDER: docs/v${{ env.VERSION }}
- name: Deploy (to docs/latest) 🚀
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: build/styleguide
TARGET_FOLDER: docs/latest