Skip to content

fix: upgrade Calcit messaging runtime #207

fix: upgrade Calcit messaging runtime

fix: upgrade Calcit messaging runtime #207

Workflow file for this run

name: Upload
on:
push:
branches:
- main
pull_request: {}
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24
- name: Enable Corepack
run: |
corepack enable
corepack prepare yarn@4.12.0 --activate
yarn --version
- uses: calcit-lang/setup-calcit@v1.3.0
with:
tools: calcit,caps
- name: Resolve Calcit dependencies
run: caps --ci
- name: Install JavaScript dependencies
run: yarn install --immutable
- name: Check Calcit types
run: calcit calcit.cirru --check-only
- name: Check Calcit quality baseline
run: calcit calcit.cirru analyze quality --baseline config/calcit-quality.json
- name: Compile Calcit JavaScript
run: calcit calcit.cirru js
- name: Build site
run: yarn vite build --base=./
- name: Select deployment path
id: deploy-path
env:
EVENT_NAME: ${{ github.event_name }}
REPOSITORY: ${{ github.repository }}
run: |
if [ "$EVENT_NAME" = "pull_request" ]; then
echo "dest=rsync-user@tiye.me:/web-assets/repo/${REPOSITORY}/pr" >> "$GITHUB_OUTPUT"
else
echo "dest=rsync-user@tiye.me:/web-assets/repo/${REPOSITORY}" >> "$GITHUB_OUTPUT"
fi
- name: Prepare deployment directory
env:
DEPLOY_KEY: ${{ secrets.rsync_private_key }}
DEPLOY_DEST: ${{ steps.deploy-path.outputs.dest }}
run: |
key_file="$RUNNER_TEMP/deploy_key"
printf '%s\n' "$DEPLOY_KEY" > "$key_file"
chmod 600 "$key_file"
deploy_path="${DEPLOY_DEST#*:}"
ssh -i "$key_file" -o StrictHostKeyChecking=no rsync-user@tiye.me "mkdir -p -- '$deploy_path'"
- name: Deploy to server
id: deploy
uses: Pendect/action-rsyncer@v2.0.0
env:
DEPLOY_KEY: ${{secrets.rsync_private_key}}
with:
flags: '-avzr --progress'
options: ''
ssh_options: ''
src: 'dist/*'
dest: ${{ steps.deploy-path.outputs.dest }}
- name: Display status from deploy
run: echo "${{ steps.deploy.outputs.status }}"