feat/ui-float #30

Merged
max merged 5 commits from feat/ui-float into main 2026-02-03 13:11:06 +01:00
Showing only changes of commit e18f75e1b8 - Show all commits

View File

@@ -8,12 +8,13 @@ env:
PNPM_CACHE_FOLDER: .pnpm-store PNPM_CACHE_FOLDER: .pnpm-store
jobs: jobs:
setup: build_and_deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: jimfx/nodes:latest container: jimfx/nodes:latest
steps: steps:
- name: 📑 Checkout Code - name: 📑 Checkout Code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: 💾 Setup pnpm Cache - name: 💾 Setup pnpm Cache
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
@@ -21,52 +22,24 @@ jobs:
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: | restore-keys: |
${{ runner.os }}-pnpm- ${{ runner.os }}-pnpm-
- name: 📦 Install Dependencies - name: 📦 Install Dependencies
run: pnpm install --frozen-lockfile --store-dir ${{ env.PNPM_CACHE_FOLDER }} run: pnpm install --frozen-lockfile --store-dir ${{ env.PNPM_CACHE_FOLDER }}
- name: 🗜️ Tar Workspace
run: tar -cf workspace.tar --exclude="${{ env.PNPM_CACHE_FOLDER }}" .
- name: 📤 Upload Workspace
uses: actions/upload-artifact@v3
with:
name: workspace-deps
path: workspace.tar
compression-level: 0
lint:
needs: setup
runs-on: ubuntu-latest
container: jimfx/nodes:latest
steps:
- name: 📥 Download Workspace
uses: actions/download-artifact@v3
with:
name: workspace-deps
- name: 🔓 Untar Workspace
run: tar -xf workspace.tar && rm workspace.tar
- name: 🧹 Run Linter - name: 🧹 Run Linter
run: pnpm lint run: pnpm lint
- name: 🎨 Check Formatting - name: 🎨 Check Formatting
run: pnpm format:check run: pnpm format:check
- name: 🧬 Type Check - name: 🧬 Type Check
run: pnpm check run: pnpm check
build_and_deploy:
if: github.ref == 'refs/heads/main'
needs: [lint]
runs-on: ubuntu-latest
container: jimfx/nodes:latest
steps:
- name: 📥 Download Workspace
uses: actions/download-artifact@v3
with:
name: workspace-deps
- name: 🔓 Untar Workspace
run: tar -xf workspace.tar && rm workspace.tar
- name: 🛠️ Build Site - name: 🛠️ Build Site
run: pnpm run build:deploy run: pnpm run build:deploy
- name: 🔑 Configure rclone - name: 🔑 Configure rclone
if: github.ref == 'refs/heads/main'
run: | run: |
echo "$SSH_PRIVATE_KEY" > /tmp/id_rsa echo "$SSH_PRIVATE_KEY" > /tmp/id_rsa
chmod 600 /tmp/id_rsa chmod 600 /tmp/id_rsa
@@ -79,6 +52,7 @@ jobs:
SSH_USER: ${{ vars.SSH_USER }} SSH_USER: ${{ vars.SSH_USER }}
- name: 🚀 Deploy Changed Files via rclone - name: 🚀 Deploy Changed Files via rclone
if: github.ref == 'refs/heads/main'
run: | run: |
echo "Uploading the rest" echo "Uploading the rest"
rclone sync --update -v --progress --exclude _astro/** --stats 2s --stats-one-line ./app/build/ sftp-remote:${REMOTE_DIR} --transfers 4 rclone sync --update -v --progress --exclude _astro/** --stats 2s --stats-one-line ./app/build/ sftp-remote:${REMOTE_DIR} --transfers 4