Release #2
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: 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} |