Skip to content

Release: v0.7.67

Release: v0.7.67 #92

name: Build and deploy
permissions:
contents: write
on:
push:
tags:
- 'v?[0-9]+.[0-9]+.[0-9]+'
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build core package
run: npm run build -w @eclipse-lyra/core
- name: Set package.json version from tag
run: |
VERSION=${GITHUB_REF_NAME}
# Remove 'v' prefix if present
VERSION=${VERSION#v}
npm version --no-commit-hooks --no-git-tag-version "$VERSION"
- name: Build Lyra app
run: npm run build:app
continue-on-error: false
- name: Verify build output
run: |
if [ ! -d "packages/app/dist" ]; then
echo "ERROR: packages/app/dist directory does not exist!"
exit 1
fi
if [ -z "$(ls -A packages/app/dist)" ]; then
echo "ERROR: packages/app/dist directory is empty!"
exit 1
fi
echo "Build output contents:"
ls -la packages/app/dist/
echo ""
echo "Files in packages/app/dist:"
find packages/app/dist -type f | head -20
- name: Add CNAME file
run: echo "app.kispace.de" > packages/app/dist/CNAME
- name: Deploy to GitHub Pages branch
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: packages/app/dist
publish_branch: gh-pages
keep_files: false
- name: Deployment Summary
run: |
echo "## 🚀 Deployment Summary" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "### Version: ${{ github.ref_name }}" >> $GITHUB_STEP_SUMMARY
echo "- ✅ Build successful" >> $GITHUB_STEP_SUMMARY
echo "- ✅ Deployed to GitHub Pages" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "### Access" >> $GITHUB_STEP_SUMMARY
echo "- **URL**: https://app.kispace.de" >> $GITHUB_STEP_SUMMARY
echo "- **Commit**: ${{ github.sha }}" >> $GITHUB_STEP_SUMMARY
deploy-docs:
needs: deploy
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build docs
run: npm run docs:build
- name: Deploy docs to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/.vitepress/dist
destination_dir: docs
publish_branch: gh-pages
keep_files: true