Skip to content

fix show welcome command handler #8

fix show welcome command handler

fix show welcome command handler #8

name: Build and deploy geo!space
permissions:
contents: write
# Trigger only on new tag push
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+' # run only if matches a semantic version
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Set package.json version from tag
run: |
VERSION=${GITHUB_REF_NAME}
npm version --no-commit-hooks --no-git-tag-version "$VERSION"
- name: Build runtime library
run: npm run build-gslib
- name: Build app
run: |
REPO=${GITHUB_REPOSITORY##*/}
export VITE_BASE_PATH="/$REPO/"
npm run build
- name: Deploy to GitHub Pages branch
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist