1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 22:33:57 +02:00

Fixup the release workflow

This commit is contained in:
Graham Christensen 2025-02-20 17:15:51 -05:00
parent 013c09948e
commit 592994d2e1

View file

@ -1,11 +1,14 @@
name: Publish on FlakeHub
name: Release
on:
push:
tags:
- "v*.*.*"
release:
types:
- released
publish:
jobs:
publish:
if: (!github.repository.fork && (github.ref == format('refs/heads/{0}', github.event.repository.default_branch) || startsWith(github.ref, 'refs/tags/')))
environment: ${{ github.event_name == 'release' && 'production' || '' }}
runs-on: ubuntu-latest
permissions:
contents: read
@ -15,6 +18,6 @@ publish:
- uses: DeterminateSystems/nix-installer-action@main
- uses: "DeterminateSystems/flakehub-push@main"
with:
rolling: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
visibility: "private"
name: "DeterminateSystems/nix-priv"
tag: "${{ github.ref_name }}"