Skip to content

Commit

Permalink
feat: add publish to cache action
Browse files Browse the repository at this point in the history
  • Loading branch information
water-sucks committed Nov 16, 2024
1 parent 0cd8578 commit 971f95c
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release
on:
workflow_dispatch:
inputs:
git-ref:
description: "Git ref to publish to Cachix"
required: true
type: string
release:
types: [created]

jobs:
publish-to-cachix:
name: Publish to Cache
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.git-ref }}

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main

- name: Initialize Cachix
uses: cachix/cachix-action@v14
with:
name: watersucks
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"

- name: Build Nix packages
run: nix build .#{nixos,nixosLegacy}

0 comments on commit 971f95c

Please sign in to comment.