Skip to content

fix: use GitHub reference for systems input #2

fix: use GitHub reference for systems input

fix: use GitHub reference for systems input #2

Workflow file for this run

# .github/workflows/flakehub.yml
name: Publish to FlakeHub
on:
push:
tags:
- "v*"
workflow_dispatch:
inputs:
tag:
description: "Git tag to publish (e.g., v0.1.0)"
required: true
type: string
permissions:
id-token: write
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.tag || github.ref }}
- name: Install Nix
uses: DeterminateSystems/determinate-nix-action@v3
- name: Setup Nix cache
uses: DeterminateSystems/magic-nix-cache-action@v8
- name: Check flake
run: nix flake check
- name: Publish to FlakeHub
uses: DeterminateSystems/flakehub-push@main
with:
visibility: public
name: RogerNavelsaker/nix-lib
tag: ${{ inputs.tag || github.ref_name }}