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:
parent
14818b0d88
commit
a341be4d9b
2 changed files with 18 additions and 23 deletions
23
.github/workflows/publish.yml
vendored
23
.github/workflows/publish.yml
vendored
|
@ -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 }}"
|
18
.github/workflows/upload-release.yml
vendored
18
.github/workflows/upload-release.yml
vendored
|
@ -83,3 +83,21 @@ jobs:
|
|||
ids_project_name: determinate-nix
|
||||
ids_binary_prefix: determinate-nix
|
||||
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 }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue