1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 14:21:48 +02:00

fixup: fold publish.yml into upload-release.yml

This commit is contained in:
Cole Helbling 2025-02-21 13:33:56 -08:00
parent 14818b0d88
commit a341be4d9b
2 changed files with 18 additions and 23 deletions

View file

@ -1,23 +0,0 @@
name: Release
on:
release:
types:
- released
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
id-token: write
steps:
- uses: actions/checkout@v4
- 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"
tag: "${{ github.ref_name }}"

View file

@ -83,3 +83,21 @@ jobs:
ids_project_name: determinate-nix ids_project_name: determinate-nix
ids_binary_prefix: determinate-nix ids_binary_prefix: determinate-nix
skip_acl: true skip_acl: true
publish:
needs:
- release
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
id-token: write
steps:
- uses: actions/checkout@v4
- 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"
tag: "${{ github.ref_name }}"