Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 27 additions & 6 deletions .github/workflows/upload.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Upload

permissions:
contents: read

on:
push:
branches:
Expand All @@ -17,14 +20,32 @@ jobs:
node-version: 24

- name: Enable Corepack
run: corepack enable && corepack prepare yarn@4.12.0 --activate
run: |
corepack enable
corepack prepare yarn@4.12.0 --activate
yarn --version

- uses: calcit-lang/setup-calcit@v1

- name: "compiles to js"
run: >
caps --ci && calcit js
&& yarn && yarn vite build --base=./
- name: Install dependencies
run: |
caps --strict --ci
yarn install --immutable

- name: Verify Calcit toolchain
run: caps verify --toolchain

- name: Validate snapshot and types
run: |
calcit calcit.cirru edit format
git diff --exit-code -- calcit.cirru
calcit calcit.cirru --check-only
calcit calcit.cirru analyze dynamic-methods --max 0

- name: Compile and build
run: |
calcit calcit.cirru js
yarn vite build --base=./

- name: Deploy to server
id: deploy
Expand All @@ -36,7 +57,7 @@ jobs:
options: ''
ssh_options: ''
src: 'dist/*'
dest: 'rsync-user@tiye.me:/web-assets/repo/${{ github.repository }}'
dest: "rsync-user@tiye.me:/web-assets/repo/${{ github.repository }}/${{ github.event_name == 'pull_request' && format('pr/{0}/', github.event.pull_request.number) || '' }}"

- name: Display status from deploy
run: echo "${{ steps.deploy.outputs.status }}"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ js-out/
node_modules/
dist/
.DS_Store
.pnp.*
.yarn/
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
272 changes: 160 additions & 112 deletions calcit.cirru

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading