-
Notifications
You must be signed in to change notification settings - Fork 80
34 lines (27 loc) · 819 Bytes
/
deploy.yml
File metadata and controls
34 lines (27 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: deploy
on:
push:
branches: [master]
jobs:
deploy:
# Deploys should only occur from the master branch
if: github.ref_name == 'master'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup SSH keys and known_hosts
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
ssh-add - <<< "${{ secrets.PACCHETTIBOTTI_SSH_KEY }}"
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
- name: Setup Nix cache
uses: DeterminateSystems/magic-nix-cache-action@v2
- name: Deploy with Colmena
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
nix develop --command colmena apply