Skip to content

v1.4.0 finialization #179

v1.4.0 finialization

v1.4.0 finialization #179

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- main
pull_request: {}
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Setup Node ✨
uses: actions/setup-node@v4
with:
node-version: 24.19.0
cache: npm
- name: Install Dependencies 🔧
run: npm ci --include=optional
- name: Ensure Rollup Linux binary is present
run: |
node -e "require.resolve('@rollup/rollup-linux-x64-gnu')" || npm i --no-save @rollup/rollup-linux-x64-gnu@$(node -p "require('./node_modules/rollup/package.json').optionalDependencies['@rollup/rollup-linux-x64-gnu'] || require('./node_modules/rollup/package.json').version")
- name: Build 🔧
run: npm run build:highmem
env:
VITE_GOATCOUNTER_ENDPOINT: https://solidcockpit.goatcounter.com/count
- name: Post Build Actions 🛠️
run: npm run github-post-build
env:
NODE_ENV: production
deploy:
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
environment: github-pages
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Setup Node ✨
uses: actions/setup-node@v4
with:
node-version: 24.19.0
cache: npm
- name: Install Dependencies 🔧
run: npm ci --include=optional
- name: Ensure Rollup Linux binary is present
run: |
node -e "require.resolve('@rollup/rollup-linux-x64-gnu')" || npm i --no-save @rollup/rollup-linux-x64-gnu@$(node -p "require('./node_modules/rollup/package.json').optionalDependencies['@rollup/rollup-linux-x64-gnu'] || require('./node_modules/rollup/package.json').version")
- name: Build 🔧
run: npm run build:highmem
env:
VITE_GOATCOUNTER_ENDPOINT: https://solidcockpit.goatcounter.com/count
- name: Post Build Actions 🛠️
run: npm run github-post-build
env:
NODE_ENV: production
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: pages
FOLDER: dist
CLEAN: true