finalized dynamic extensions/plugins system #13
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |