Skip to content

chore: update flake.lock #2

chore: update flake.lock

chore: update flake.lock #2

name: Publish to FlakeHub ️❄️
on:
push:
tags:
- "v?[0-9]+.[0-9]+.[0-9]+*"
workflow_dispatch:
inputs:
tag:
description: "The existing tag to publish to FlakeHub"
type: "string"
required: true
jobs:
flakehub-publish:
runs-on: ubuntu-22.04
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
ref: "${{ (inputs.tag != null) && format('refs/tags/{0}', inputs.tag) || '' }}"
- uses: DeterminateSystems/nix-installer-action@v16
with:
determinate: true
- uses: DeterminateSystems/flakehub-cache-action@v1
- uses: DeterminateSystems/flakehub-push@v5
with:
tag: ${{ inputs.tag }}
include-output-paths: true
visibility: "public"
- name: Release Notes ✍️
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TAG="${{ github.ref_name }}"
if [ -n "${{ inputs.tag }}" ]; then
TAG="${{ inputs.tag }}"
fi
gh release create "${TAG}" --generate-notes --draft=false