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

Fold the release things into one workflow

This commit is contained in:
Cole Helbling 2025-02-21 13:29:34 -08:00
parent 702bde8bf0
commit dee23a0c14
4 changed files with 13 additions and 68 deletions

View file

@ -1,20 +0,0 @@
name: Release Branch
concurrency:
group: release
on:
push:
branches:
# NOTE: make sure any branches here are also valid directory names,
# otherwise creating the directory and uploading to s3 will fail
- "main"
permissions:
id-token: "write"
contents: "read"
jobs:
release-branch:
uses: ./.github/workflows/upload-release.yml
secrets: inherit

View file

@ -1,30 +0,0 @@
name: Release PR
concurrency:
group: release
on:
pull_request:
types:
- opened
- reopened
- synchronize
- labeled
permissions:
id-token: "write"
contents: "read"
jobs:
release-pr:
# Only intra-repo PRs are allowed to have PR artifacts uploaded
# We only want to trigger once the upload once in the case the upload label is added, not when any label is added
if: |
always() && !failure() && !cancelled()
&& github.event.pull_request.head.repo.full_name == 'DeterminateSystems/nix-priv'
&& (
(github.event.action == 'labeled' && github.event.label.name == 'upload to s3')
|| (github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'upload to s3'))
)
uses: ./.github/workflows/upload-release.yml
secrets: inherit

View file

@ -1,18 +0,0 @@
name: Release Tags
concurrency:
group: release
on:
push:
tags:
- "v*.*.*"
permissions:
contents: write # In order to upload artifacts to GitHub releases
id-token: write # In order to request a JWT for AWS auth
jobs:
release-tag:
uses: ./.github/workflows/upload-release.yml
secrets: inherit

View file

@ -5,6 +5,19 @@ concurrency:
on:
workflow_call:
push:
branches:
# NOTE: make sure any branches here are also valid directory names,
# otherwise creating the directory and uploading to s3 will fail
- "main"
tags:
- "v*.*.*"
pull_request:
types:
- opened
- reopened
- synchronize
- labeled
permissions:
id-token: "write"