Skip to content

Commit

Permalink
add note
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuarli committed Sep 17, 2024
1 parent 8a9085d commit 049ab03
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build_binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Binary Release Build

on:
push:
branches:
- release/**

env:
CARGO_TERM_COLOR: always
Expand Down Expand Up @@ -102,11 +104,15 @@ jobs:
compression-level: '0'

merge:
name: Create Release Artifact
runs-on: ubuntu-latest
needs: [linux, macos, windows]
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
# Note: due to the immutability of artifacts in upload-artifact v4,
# there cannot be mutliple upload-artifacts with the same name, in a sha's workflow runs.
# However in this case it is fine because this only runs on release/** branches,
# and the other runs on release-library/** branches.
- uses: actions/upload-artifact/merge@v4
with:
# Craft expects release assets to be a single artifact named after the sha.
name: ${{ github.sha }}
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/build_library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,15 @@ jobs:
compression-level: '0'

merge:
name: Create Release Artifact
runs-on: ubuntu-latest
needs: [linux, macos, sdist]
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
# Note: due to the immutability of artifacts in upload-artifact v4,
# there cannot be mutliple upload-artifacts with the same name, in a sha's workflow runs.
# However in this case it is fine because this only runs on release-library/** branches,
# and the other runs on release/** branches.
- uses: actions/upload-artifact/merge@v4
with:
# Craft expects release assets to be a single artifact named after the sha.
name: ${{ github.sha }}
Expand Down

0 comments on commit 049ab03

Please sign in to comment.