Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Jun 4, 2024
1 parent bc7c437 commit d0a4c1b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
18 changes: 9 additions & 9 deletions .buildkite/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ steps:

- label: Download signed artifacts
commands:
- .buildkite/scripts/download-signed-artifacts.sh "gpg-sign-service"
- .buildkite/scripts/download-signed-artifacts.sh "macos-sign-service"
- .buildkite/scripts/download-signed-artifacts.sh "windows-sign-service"
- .buildkite/scripts/download-signed-artifacts.sh "gpg-sign-service" | buildkite-agent pipeline upload
- .buildkite/scripts/download-signed-artifacts.sh "macos-sign-service" | buildkite-agent pipeline upload
- .buildkite/scripts/download-signed-artifacts.sh "windows-sign-service" | buildkite-agent pipeline upload
- .buildkite/scripts/download-signed-artifacts.sh "gpg-sign-service" "gpg"
- .buildkite/scripts/download-signed-artifacts.sh "macos-sign-service" "macos"
- .buildkite/scripts/download-signed-artifacts.sh "windows-sign-service" "windows"
- .buildkite/scripts/download-signed-artifacts.sh "gpg-sign-service" "gpg" | buildkite-agent pipeline upload
- .buildkite/scripts/download-signed-artifacts.sh "macos-sign-service" "macos" | buildkite-agent pipeline upload
- .buildkite/scripts/download-signed-artifacts.sh "windows-sign-service" "windows" | buildkite-agent pipeline upload

- wait: ~

Expand All @@ -61,9 +61,9 @@ steps:
commands:
- .buildkite/scripts/create-github-release.sh
depends_on:
- "gpg-sign-service"
- "macos-sign-service"
- "windows-sign-service"
- "gpg"
- "macos"
- "windows"

# Figure out how to notify releases (maybe subscribe the slack channel to the GitHub releases?)
notify:
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/scripts/create-github-release.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash#
#!/usr/bin/env bash
# Download the signed artifacts and run the GitHub release using the GH cli
#
# Required environment variables:
Expand Down
3 changes: 2 additions & 1 deletion .buildkite/scripts/download-signed-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#

STEP=$1
DOWNLOAD_STEP_NAME=$2

## Support main pipeline and downstream pipelines
if [ -n "$BUILDKITE_TRIGGERED_FROM_BUILD_PIPELINE_SLUG" ] ; then
Expand Down Expand Up @@ -35,7 +36,7 @@ fi

cat << EOF
- label: ":pipeline: Download signed artifacts"
key: "$STEP"
key: "$DOWNLOAD_STEP_NAME"
commands:
- mkdir -p signed-artifacts
- buildkite-agent artifact download --build "$SIGN_BUILD_ID" "*.*" signed-artifacts/
Expand Down

0 comments on commit d0a4c1b

Please sign in to comment.