Skip to content

v7.3.1

v7.3.1 #49

Workflow file for this run

name: Update gh-pages (release)
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources 🔰
uses: actions/checkout@v4
- name: Setup Node.js 🧮
uses: actions/setup-node@v4
with:
node-version: 18
- 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 artifacts 🏗️
run: npm run build
- name: Get shogun-gis-client version 🔖
run: |
echo "VERSION=$(node -pe "require('./package.json').version")" >> $GITHUB_ENV
- name: Deploy (to v${{ env.VERSION }}) 🚀
uses: JamesIves/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: build
target-folder: v${{ env.VERSION }}