8000 Specify os and cpu for release name to avoid duplicates · tronweb3/protobuf-javascript@aa988c9 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit aa988c9

Browse files
committed
Specify os and cpu for release name to avoid duplicates
actions/upload-artifact@4 made a breaking change to fail on duplicate names. I think we are seeing Windows release errors as a result since both x64_x86 and x64 are named 'releases'. This change just tags the os and cpu onto the release dir name to reflect the specific build.
1 parent 16cb293 commit aa988c9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ jobs:
2727
node-version: 20
2828
cache: ${{ !env.ACT && 'npm' || '' }} # cache API not available in ACT
2929

30-
- uses: bazel-contrib/setup-bazel@0.8.5
31-
with:
32-
token: ${{ secrets.GITHUB_TOKEN }}
33-
3430
- name: Install Protoc
3531
run: |
3632
echo "Fetching protoc"
@@ -108,7 +104,7 @@ jobs:
108104

109105
- uses: actions/upload-artifact@v4
110106
with:
111-
name: releases
107+
name: release-${{ matrix.os }}-${{ matrix.cpu }}
112108
path: out
113109

114110
release:
@@ -122,7 +118,7 @@ jobs:
122118
steps:
123119
- uses: actions/download-artifact@v4
124120
with:
125-
name: releases
121+
name: release-${{ matrix.os }}-${{ matrix.cpu }}
126122

127123
- name: Release
128124
uses: svenstaro/upload-release-action@v2

0 commit comments

Comments
 (0)
0