-
-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (30 loc) · 1.32 KB
/
generate-topology.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
name: Generate Topology
on:
workflow_dispatch:
schedule:
- cron: "0 3 1 * *" # On the first of every month at 3:00 AM
jobs:
generate-topology:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Lix
uses: DeterminateSystems/nix-installer-action@main
with:
source-url: https://install.lix.systems/lix/lix-installer-x86_64-linux
logger: pretty
diagnostic-endpoint: ""
extra-conf: |
substituters = https://nix-community.cachix.org https://isabelroses.cachix.org https://catppuccin.cachix.org https://cache.nixos.org/
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= isabelroses.cachix.org-1:mXdV/CMcPDaiTmkQ7/4+MzChpOe6Cb97njKmBQQmLPM= catppuccin.cachix.org-1:noG/4HkbhJb+lUAdKrph6LaozJvAeEEZj4N732IysmU=
- name: Build from the matrix
run: nix build -L .#topology.x86_64-linux.config.output
- name: Move files
run: |
nix shell nixpkgs#imagemagick
magick ./result/topology.svg ./docs/src/images/topology.png
- name: Commit & Push
uses: endbug/add-and-commit@v9
with:
message: "chore: generate topology"