rose-pine-nix/.github/workflows/publish.yml
renovate[bot] 047af94814
ci: update determinatesystems/flakehub-push action to v4 (#234)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-22 07:03:54 -04:00

49 lines
947 B
YAML

name: Publish flake
on:
push:
tags: ["v*.*.*"]
workflow_dispatch:
inputs:
tag:
description: "The tag to publish"
type: string
required: true
jobs:
flakehub:
name: FlakeHub
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.tag || github.ref }}
- name: Install Nix
uses: cachix/install-nix-action@V27
- name: Push to FlakeHub
uses: DeterminateSystems/flakehub-push@v4
with:
tag: ${{ inputs.tag || github.ref_name }}
visibility: "public"
flakestry:
name: Flakestry
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Publish on Flakestry
uses: flakestry/flakestry-publish@main
with:
version: ${{ inputs.tag || github.ref_name }}