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
37 changes: 37 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build & Deploy
on:
push: { branches: [main] }
pull_request:

jobs:
validate: # GitHub-hosted — the PR safety gate
runs-on: ubuntu-latest
name: Test
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with: { node-version: 22, cache: pnpm }
- run: pnpm install --frozen-lockfile
- run: pnpm test # run the repo's test suite
- uses: actions/upload-artifact@v4
with:
name: site
path: dist/

deploy: # Push to lapikud lxc, main branch only
needs: validate
if: github.ref == 'refs/heads/main'
runs-on: [self-hosted, dev102]
steps:
- uses: actions/checkout@v4 # provides package.json + lockfile
- uses: actions/download-artifact@v4 # the site built on the hosted runner
with: { name: site, path: dist/ }
- name: Deploy build into serving dir and restart
run: |
source /home/web/.nvm/nvm.sh # node/pnpm come from nvm
rsync -a --delete dist/ /home/web/dev102/dist/ # swap in the new build
cp package.json pnpm-lock.yaml /home/web/dev102/ # keep manifest in sync
cd /home/web/dev102
pnpm install --prod --frozen-lockfile # runtime deps only
sudo systemctl restart dev102.service
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "",
"type": "module",
"version": "0.0.1",
"packageManager": "pnpm@12.11.2",
"engines": {
"node": ">=22.12.0"
},
Expand Down
158 changes: 158 additions & 0 deletions pnpm-lock.yaml

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

1 change: 1 addition & 0 deletions src/content/workshops/git-workshop-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: |-
Git Workshop
date: "2026-11-04T18:30:00+02:00"
location: ICO-316
description: Have you ever wondered how the code you write on your computer is connected to the repositories you have in your GitHub or GitLab account? What happens deeper than just pressing buttons like commit and push in an IDE? What even is Git and why is it so important for every developer?
facebookEventUrl: https://fb.me/e/gGKxweX7A
speakers:
- name: Kerdo Käärma
Expand Down