-
Notifications
You must be signed in to change notification settings - Fork 11
48 lines (39 loc) · 1.06 KB
/
deploy.yaml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Deploy Main
on:
push:
branches:
- main
jobs:
deploy-main:
strategy:
matrix:
os: [ubuntu-22.04, macos-14]
runs-on: ${{ matrix.os }}
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: jlumbroso/free-disk-space@main
if: matrix.os == 'ubuntu-22.04'
- uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: |
substituters = https://cache.nixos.org
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
- uses: cachix/cachix-action@v14
with:
name: cosmos-nix
authToken: '${{ secrets.COSMOS_CACHIX_KEY }}'
- name: Check 🔎
run: |
nix flake check
- name: Run Shell 🐚
run: |
nix develop
- name: Push to FlakeHub ❄️
uses: determinatesystems/flakehub-push@main
if: matrix.os == 'ubuntu-22.04'
with:
rolling: true
visibility: "public"