.github: add flakehub-publish-tagged.yml (#9009)

This workflow will publish a flake to flakehub when a tag is pushed to
the repository. It will only publish tags that match the pattern
`v*.*.*`.

Fixes #9008

Signed-off-by: Shayne Sweeney <shayne@tailscale.com>
pull/8997/head
shayne 9 months ago committed by GitHub
parent 35ff5bf5a6
commit a3b0654ed8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,17 @@
on:
workflow_dispatch:
push:
tags:
- '^v[0-9]+\.[0-9]*[02468]+\.[0-9]+$'
jobs:
publish:
runs-on: "ubuntu-latest"
permissions:
id-token: "write"
contents: "read"
steps:
- uses: "actions/checkout@v3"
- uses: "DeterminateSystems/nix-installer-action@main"
- uses: "DeterminateSystems/flakehub-push@main"
with:
visibility: "public"
Loading…
Cancel
Save