forked from Fediversity/Fediversity
25 lines
669 B
YAML
25 lines
669 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
|
|
cat ~/.config/nix/nix.conf
|
|
nix-shell --run "attic push demo $(nix-build)"
|