init
All checks were successful
/ upload (release) Successful in 1m54s

This commit is contained in:
pavel 2026-02-15 23:16:26 +01:00
commit 9ae6d88c21
24 changed files with 7589 additions and 0 deletions

View file

@ -0,0 +1,43 @@
on:
release:
types: [published]
jobs:
upload:
runs-on: host
permissions:
packages: write
steps:
- uses: actions/setup-node@v6
with:
node-version: 24
- uses: actions/checkout@v6
- name: Cache Cargo registry
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Cache Cargo target
uses: actions/cache@v4
with:
path: target/
key: ${{ runner.os }}-cargo-target-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-target-
- run: ~/.cargo/bin/cargo build -r
- run: |
export XDG_RUNTIME_DIR=/run/user/$(id -u)
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
systemctl --user stop calendar
mkdir -p ~/calendar
cp target/release/calendar ~/calendar/calendar
chmod +x ~/calendar/calendar
mkdir -p ~/calendar/static
rm -rf ~/calendar/static/*
cp -r static/* ~/calendar/static/
systemctl --user start calendar