-
-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (37 loc) · 1.12 KB
/
flakehub.yml
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
name: Publish to FlakeHub
on:
push:
branches: [main]
paths: ["**.nix", "**.rs", "Cargo.lock"]
pull_request:
paths: ["**.nix", "**.rs", "Cargo.lock"]
workflow_dispatch:
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
permissions:
id-token: write
contents: read
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Setup cachix
uses: cachix/cachix-action@v15
with:
name: catppuccin
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Flake check
run: nix flake check -Lv
- name: Build packages
run: nix build -L .
- uses: DeterminateSystems/flakehub-push@main
# only push to FlakeHub once when running on main
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request' && matrix.os == 'ubuntu-latest'
with:
name: catppuccin/whiskers
rolling: true
visibility: public