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,20 +1,23 @@
name: Publish on FlakeHub name: Release
on: on:
push: release:
tags: types:
- "v*.*.*" - released
publish: jobs:
runs-on: ubuntu-latest publish:
permissions: if: (!github.repository.fork && (github.ref == format('refs/heads/{0}', github.event.repository.default_branch) || startsWith(github.ref, 'refs/tags/')))
contents: read environment: ${{ github.event_name == 'release' && 'production' || '' }}
id-token: write runs-on: ubuntu-latest
steps: permissions:
- uses: actions/checkout@v4 contents: read
- uses: DeterminateSystems/nix-installer-action@main id-token: write
- uses: "DeterminateSystems/flakehub-push@main" steps:
with: - uses: actions/checkout@v4
visibility: "private" - uses: DeterminateSystems/nix-installer-action@main
name: "DeterminateSystems/nix-priv" - uses: "DeterminateSystems/flakehub-push@main"
tag: "${{ github.ref_name }}" with:
rolling: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
visibility: "private"
tag: "${{ github.ref_name }}"