Skip to content

Commit

Permalink
Add flakehub push
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeChannings committed Sep 16, 2024
1 parent d7227d0 commit 2cf301b
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/flakehub-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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
3 changes: 1 addition & 2 deletions packages/mkalias/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
stdenv,
swift,
swiftpm,
swiftpm2nix,
Expand All @@ -9,7 +8,7 @@ let
# Pass the generated files to the helper.
generated = swiftpm2nix.helpers ./nix;
in
stdenv.mkDerivation {
swift.stdenv.mkDerivation {
pname = "mkalias";
version = "1.0.0";

Expand Down

0 comments on commit 2cf301b

Please sign in to comment.