pretty sure this won't work

This commit is contained in:
Graham Christensen 2023-05-21 20:42:39 -04:00
parent bff88ada04
commit 472f695787
No known key found for this signature in database
2 changed files with 16 additions and 6 deletions

View file

@ -1,6 +1,14 @@
name: Release PR
on:
workflow_run:
workflows: ["Build artifacts"]
branches:
# NOTE: make sure any branches here are also valid directory names,
# otherwise creating the directory and uploading to s3 will fail
- "main"
types:
- completed
pull_request:
types:
- opened
@ -10,9 +18,6 @@ on:
jobs:
release:
needs:
- build-artifacts-macOS
- build-artifacts-Linux
concurrency: release
# Only intra-repo PRs are allowed to have PR artifacts uploaded
if: github.event.pull_request.head.repo.full_name == 'DeterminateSystems/nix-actions-cache' && contains(github.event.pull_request.labels.*.name, 'upload to s3')

View file

@ -1,15 +1,20 @@
name: Release Tags
on:
workflow_run:
workflows: ["Build artifacts"]
branches:
# NOTE: make sure any branches here are also valid directory names,
# otherwise creating the directory and uploading to s3 will fail
- "main"
types:
- completed
push:
tags:
- "v*.*.*"
jobs:
release:
needs:
- build-artifacts-macOS
- build-artifacts-Linux
concurrency: release
runs-on: ubuntu-latest
permissions: