Add flakehub push #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |