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
3 changes: 0 additions & 3 deletions .github/workflows/current.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ on:
pull_request:
branches:
- main
repository_dispatch:
types: [lapikit-updated]

jobs:
build:
uses: ./.github/workflows/integrations-test.yml
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI/CD Release lapikit

on:
repository_dispatch:
types: [lapikit-updated]

jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 10
needs: build

steps:
- name: Checkout repository
uses: actions/checkout@v6

- name: deploy on production environment
uses: appleboy/ssh-action@v1.2.5
with:
host: ${{ secrets.VPS_HOST }}
username: ${{ secrets.VPS_USER }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.VPS_PORT }}
script: |
set -euo pipefail
cd ~/${{ secrets.PATH_CURRENT }}
git fetch origin
git reset --hard origin/main
docker compose build
docker compose up -d --remove-orphans
9 changes: 7 additions & 2 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
import LapikitLogo from '$lib/assets/images/lapikit.webp?enhanced';
import { openConsentPreferences } from '$lib/stores/consent.svelte';
import { npmState } from '$lib/stores/npm.svelte';
import { resolve } from '$app/paths';

// states
let stepCode: number = $state(0);
Expand Down Expand Up @@ -217,15 +218,19 @@
>
<div class="flex items-center justify-start gap-2">
<!-- eslint-disable-next-line svelte/no-navigation-without-resolve -->
<a href="/">
<a href={resolve('/')} style="color: var(--fg-primary-legacy)">
<div class="flex items-center gap-2">
<enhanced:img src={LapikitLogo} alt="Lapikit logo" class="no-select w-9.5 min-w-9.5" />
<p class="text-2xl font-bold">Lapikit</p>
</div>
</a>

<!-- eslint-disable-next-line svelte/no-navigation-without-resolve -->
<a href="/docs/changelog" class="text-xs opacity-70 hover:opacity-100">
<a
href={resolve('/docs/changelog')}
class="text-xs opacity-70 hover:opacity-100"
style="color: var(--fg-primary-legacy)"
>
{npmState.version || 'v0.0.0'}
</a>
</div>
Expand Down