mirror of
https://github.com/NixOS/nix
synced 2025-07-08 02:43:54 +02:00
Fixup the release workflow
This commit is contained in:
parent
013c09948e
commit
592994d2e1
1 changed files with 20 additions and 17 deletions
13
.github/workflows/publish.yml
vendored
13
.github/workflows/publish.yml
vendored
|
@ -1,11 +1,14 @@
|
||||||
name: Publish on FlakeHub
|
name: Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
release:
|
||||||
tags:
|
types:
|
||||||
- "v*.*.*"
|
- released
|
||||||
|
|
||||||
|
jobs:
|
||||||
publish:
|
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
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
@ -15,6 +18,6 @@ publish:
|
||||||
- uses: DeterminateSystems/nix-installer-action@main
|
- uses: DeterminateSystems/nix-installer-action@main
|
||||||
- uses: "DeterminateSystems/flakehub-push@main"
|
- uses: "DeterminateSystems/flakehub-push@main"
|
||||||
with:
|
with:
|
||||||
|
rolling: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
|
||||||
visibility: "private"
|
visibility: "private"
|
||||||
name: "DeterminateSystems/nix-priv"
|
|
||||||
tag: "${{ github.ref_name }}"
|
tag: "${{ github.ref_name }}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue