mirror of
https://github.com/eza-community/eza.git
synced 2026-10-12 02:13:29 +00:00
43 lines
1.2 KiB
YAML
43 lines
1.2 KiB
YAML
# SPDX-FileCopyrightText: 2024 Christina Sørensen
|
|
# SPDX-License-Identifier: EUPL-1.2
|
|
#
|
|
# SPDX-FileCopyrightText: 2023-2024 Christina Sørensen, eza contributors
|
|
# SPDX-FileCopyrightText: 2014 Benjamin Sago
|
|
# SPDX-License-Identifier: MIT
|
|
name: "Publish flake"
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v?[0-9]+.[0-9]+.[0-9]+"
|
|
- "v?[0-9]+.[0-9]+.[0-9]+*"
|
|
workflow_dispatch:
|
|
inputs:
|
|
tag:
|
|
description: "Existing tag to publish"
|
|
type: "string"
|
|
required: true
|
|
jobs:
|
|
publish-flakestry:
|
|
name: "Publish to `flakestry.dev`"
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
id-token: "write"
|
|
contents: "read"
|
|
steps:
|
|
- uses: flakestry/flakestry-publish@main
|
|
with:
|
|
version: "${{ inputs.tag || github.ref_name }}"
|
|
publish-flakehub:
|
|
name: "Publish to `flakehub.com`"
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
id-token: "write"
|
|
contents: "read"
|
|
steps:
|
|
- uses: "actions/checkout@v4"
|
|
- uses: "DeterminateSystems/nix-installer-action@main"
|
|
- uses: "DeterminateSystems/flakehub-push@main"
|
|
with:
|
|
visibility: "public"
|
|
tag: "${{ inputs.tag || github.ref_name }}"
|