forked from Fediversity/Fediversity
27 lines
677 B
YAML
27 lines
677 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: Configure cache
|
|
run: nix-shell --run "attic login fediversity https://attic.fediversity.net ${{ secrets.ATTIC_PUSH_KEY }} && attic use demo"
|
|
|
|
- name: Set up SSH key to access age secrets
|
|
run: |
|
|
env
|
|
mkdir -p ~/.ssh
|
|
echo "${{ secrets.CD_SSH_KEY }}" > ~/.ssh/id_ed25519
|
|
chmod 600 ~/.ssh/id_ed25519
|
|
|
|
- name: Cache
|
|
run: nix-shell --run "attic push demo $(nix-build)"
|