Fediversity/.forgejo/workflows/cache.yaml
2025-08-07 22:26:50 +02:00

25 lines
681 B
YAML

name: cache-build
on:
workflow_dispatch: # allows manual triggering
push:
branches:
# - main
jobs:
deploy:
runs-on: native
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Cache
run: |
nix-shell --run "attic login fediversity https://attic.fediversity.net '${{ secrets.ATTIC_PUSH_KEY }}' && attic use demo"
env
mkdir -p ~/.ssh
echo "${{ secrets.CD_SSH_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
cat ~/.config/attic/config.toml | head -n 2
cat ~/.config/nix/nix.conf
nix-shell --run "attic push demo $(nix-build)"