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:
parent
702bde8bf0
commit
dee23a0c14
4 changed files with 13 additions and 68 deletions
20
.github/workflows/release-branches.yml
vendored
20
.github/workflows/release-branches.yml
vendored
|
@ -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
|
|
30
.github/workflows/release-prs.yml
vendored
30
.github/workflows/release-prs.yml
vendored
|
@ -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
|
|
18
.github/workflows/release-tags.yml
vendored
18
.github/workflows/release-tags.yml
vendored
|
@ -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
|
|
13
.github/workflows/upload-release.yml
vendored
13
.github/workflows/upload-release.yml
vendored
|
@ -5,6 +5,19 @@ concurrency:
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
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:
|
permissions:
|
||||||
id-token: "write"
|
id-token: "write"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue