Skip to content

Add flakehub push

Add flakehub push #9

name: "Publish every Git push to main to FlakeHub"
on:
push:
branches:
- "main"
jobs:
flakehub-publish:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
permissions:
id-token: "write"
contents: "read"
steps:
- uses: "actions/checkout@v4"
- uses: "DeterminateSystems/nix-installer-action@main"
- name: "Install direnv"
run: |
nix profile install nixpkgs#direnv
direnv allow
- name: "build"
run: |
nix build .#mkalias
# - uses: "DeterminateSystems/flakehub-push@main"
# with:
# name: "LukeChannings/toolbox"
# rolling: true
# visibility: "public"
# include-output-paths: true